diff options
author | rangerzhang <928815211@qq.com> | 2022-02-20 14:09:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-20 08:09:19 +0200 |
commit | 9b0fd9f4d0e7e41f3cc78b4bd37619b574246aef (patch) | |
tree | 1d5031fca35b0b9174c5d28dfd9665f4efe3bb1a /src/replication.c | |
parent | c0ea77f0e19441f54e7303641b9387d281c2c3db (diff) | |
download | redis-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.c | 2 |
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", |