Skip to content

Commit

Permalink
fix slavaof serialize response bug (OpenAtomFoundation#1583)
Browse files Browse the repository at this point in the history
Co-authored-by: liuyuecai <[email protected]>
  • Loading branch information
2 people authored and lqxhub committed Jun 18, 2023
1 parent 99a97b2 commit ed7cca2
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 ed7cca2

Please sign in to comment.