Skip to content

Commit

Permalink
Display slave_read_only in classic mode (OpenAtomFoundation#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
whoiami authored Aug 6, 2019
1 parent 735ebb6 commit 059c8e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ void InfoCmd::InfoReplication(std::string& info) {
tmp_stream << "master_link_status:" << (((g_pika_server->repl_state() == PIKA_REPL_META_SYNC_DONE)
&& all_partition_sync) ? "up" : "down") << "\r\n";
tmp_stream << "slave_priority:" << g_pika_conf->slave_priority() << "\r\n";
tmp_stream << "slave_read_only:" << g_pika_conf->slave_read_only() << "\r\n";
if (!all_partition_sync) {
tmp_stream <<"db_repl_error_state:" << out_of_sync.str() << "\r\n";
}
Expand All @@ -837,6 +838,7 @@ void InfoCmd::InfoReplication(std::string& info) {
tmp_stream << "master_port:" << g_pika_server->master_port() << "\r\n";
tmp_stream << "master_link_status:" << (((g_pika_server->repl_state() == PIKA_REPL_META_SYNC_DONE)
&& all_partition_sync) ? "up" : "down") << "\r\n";
tmp_stream << "slave_read_only:" << g_pika_conf->slave_read_only() << "\r\n";
if (!all_partition_sync) {
tmp_stream <<"db_repl_error_state:" << out_of_sync.str() << "\r\n";
}
Expand Down

0 comments on commit 059c8e6

Please sign in to comment.