Skip to content

Commit

Permalink
Fix some more failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed Apr 4, 2019
1 parent 4326d22 commit cd836a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Binary file removed src/core
Binary file not shown.
18 changes: 9 additions & 9 deletions src/server.cpp
Expand Up @@ -4313,12 +4313,12 @@ extern "C" sds genRedisInfoString(const char *section) {
slave_repl_offset = mi->cached_master->reploff;

info = sdscatprintf(info,
"\tmaster_host:%s\r\n"
"\tmaster_port:%d\r\n"
"\tmaster_link_status:%s\r\n"
"\tmaster_last_io_seconds_ago:%d\r\n"
"\tmaster_sync_in_progress:%d\r\n"
"\tslave_repl_offset:%lld\r\n"
"master_host:%s\r\n"
"master_port:%d\r\n"
"master_link_status:%s\r\n"
"master_last_io_seconds_ago:%d\r\n"
"master_sync_in_progress:%d\r\n"
"slave_repl_offset:%lld\r\n"
,mi->masterhost,
mi->masterport,
(mi->repl_state == REPL_STATE_CONNECTED) ?
Expand All @@ -4331,8 +4331,8 @@ extern "C" sds genRedisInfoString(const char *section) {

if (mi->repl_state == REPL_STATE_TRANSFER) {
info = sdscatprintf(info,
"\tmaster_sync_left_bytes:%lld\r\n"
"\tmaster_sync_last_io_seconds_ago:%d\r\n"
"master_sync_left_bytes:%lld\r\n"
"master_sync_last_io_seconds_ago:%d\r\n"
, (long long)
(mi->repl_transfer_size - mi->repl_transfer_read),
(int)(server.unixtime-mi->repl_transfer_lastio)
Expand All @@ -4341,7 +4341,7 @@ extern "C" sds genRedisInfoString(const char *section) {

if (mi->repl_state != REPL_STATE_CONNECTED) {
info = sdscatprintf(info,
"\tmaster_link_down_since_seconds:%jd\r\n",
"master_link_down_since_seconds:%jd\r\n",
(intmax_t)server.unixtime-mi->repl_down_since);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/cluster/tests/05-slave-selection.tcl
Expand Up @@ -163,7 +163,7 @@ test "New Master down consecutively" {
wait_for_condition 1000 50 {
[master_detected $instances]
} else {
failover "No failover detected when master $master_id fails"
fail "No failover detected when master $master_id fails"
}

assert_cluster_state ok
Expand Down

0 comments on commit cd836a3

Please sign in to comment.