Skip to content

Commit

Permalink
slave_read_only in Replication show 1/0 instead of yes/no (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axlgrep authored Dec 28, 2018
1 parent 4f56415 commit aa9a6a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -747,14 +747,14 @@ 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_CONNECTED ? "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() ? "yes" : "no") << "\r\n";
tmp_stream << "slave_read_only:" << g_pika_conf->slave_read_only() << "\r\n";
tmp_stream << "repl_state: " << (g_pika_server->repl_state_str()) << "\r\n";
break;
case PIKA_ROLE_MASTER | PIKA_ROLE_SLAVE :
tmp_stream << "master_host:" << g_pika_server->master_ip() << "\r\n";
tmp_stream << "master_port:" << g_pika_server->master_port() << "\r\n";
tmp_stream << "master_link_status:" << (g_pika_server->repl_state() == PIKA_REPL_CONNECTED ? "up" : "down") << "\r\n";
tmp_stream << "slave_read_only:" << (g_pika_conf->slave_read_only() ? "yes" : "no") << "\r\n";
tmp_stream << "slave_read_only:" << g_pika_conf->slave_read_only() << "\r\n";
tmp_stream << "repl_state: " << (g_pika_server->repl_state_str()) << "\r\n";
case PIKA_ROLE_SINGLE :
case PIKA_ROLE_MASTER :
Expand Down

0 comments on commit aa9a6a4

Please sign in to comment.