summaryrefslogtreecommitdiff
path: root/src/replication.c
diff options
context:
space:
mode:
authorrangerzhang <928815211@qq.com>2022-02-20 14:09:19 +0800
committerGitHub <noreply@github.com>2022-02-20 08:09:19 +0200
commit9b0fd9f4d0e7e41f3cc78b4bd37619b574246aef (patch)
tree1d5031fca35b0b9174c5d28dfd9665f4efe3bb1a /src/replication.c
parentc0ea77f0e19441f54e7303641b9387d281c2c3db (diff)
downloadredis-9b0fd9f4d0e7e41f3cc78b4bd37619b574246aef.tar.gz
Fix a mistake in comments (#10312)
There is no variable named by REPL_STATE_RECEIVE_PSYNC_REPLY, it should be REPL_STATE_RECEIVE_PSYNC_REPLY according to the contexts.
Diffstat (limited to 'src/replication.c')
-rw-r--r--src/replication.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/replication.c b/src/replication.c
index ebd07ce86..9c2d110b0 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -2720,7 +2720,7 @@ void syncWithMaster(connection *conn) {
return;
}
- /* If reached this point, we should be in REPL_STATE_RECEIVE_PSYNC. */
+ /* If reached this point, we should be in REPL_STATE_RECEIVE_PSYNC_REPLY. */
if (server.repl_state != REPL_STATE_RECEIVE_PSYNC_REPLY) {
serverLog(LL_WARNING,"syncWithMaster(): state machine error, "
"state should be RECEIVE_PSYNC but is %d",