Skip to content

Commit

Permalink
fix info field: replstate name
Browse files Browse the repository at this point in the history
  • Loading branch information
naglera committed Mar 7, 2024
1 parent 79eae09 commit 8ccfe0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -3255,8 +3255,8 @@ void setupMainConnForPsync(connection *conn) {
* │RECEIVE_CAPA_REPLY ├───────┘ │CONNECTED │
* └───────────────────┘ └───────────────────┘
*
* /
/* This handler fires when the non blocking connect was able to
*
* This handler fires when the non blocking connect was able to
* establish a connection with the master. */
void syncWithMaster(connection *conn) {
char tmpfile[256], *err = NULL;
Expand Down
3 changes: 2 additions & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -6060,7 +6060,8 @@ sds genRedisInfoString(dict *section_dict, int all_sections, int everything) {
"offset=%lld,lag=%ld,type=%s\r\n",
slaveid,slaveip,slave->slave_listening_port,state,
slave->repl_ack_off, lag,
slave->flags & CLIENT_REPL_RDB_CHANNEL ? "rdb-conn":"main-conn");
slave->flags & CLIENT_REPL_RDB_CHANNEL ? "rdb-conn":
slave->replstate == SLAVE_STATE_BG_RDB_LOAD ? "main-conn": "normal-slave");
slaveid++;
}
}
Expand Down

0 comments on commit 8ccfe0b

Please sign in to comment.