Skip to content

Commit

Permalink
fix slavaof serialize response bug (#1583)
Browse files Browse the repository at this point in the history
Co-authored-by: liuyuecai <[email protected]>
  • Loading branch information
luky116 and liuyuecai authored Jun 3, 2023
1 parent 162c661 commit 4f0c0f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pika_repl_server_conn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ void PikaReplServerConn::HandleMetaSyncRequest(void* arg) {
g_pika_server->BecomeMaster();
response.set_code(InnerMessage::kOk);
InnerMessage::InnerResponse_MetaSync* meta_sync = response.mutable_meta_sync();
meta_sync->set_classic_mode(g_pika_conf->classic_mode());
for (const auto& db_struct : db_structs) {
InnerMessage::InnerResponse_MetaSync_DBInfo* db_info = meta_sync->add_dbs_info();
db_info->set_db_name(db_struct.db_name);
Expand Down

0 comments on commit 4f0c0f4

Please sign in to comment.