From 9b0fd9f4d0e7e41f3cc78b4bd37619b574246aef Mon Sep 17 00:00:00 2001 From: rangerzhang <928815211@qq.com> Date: Sun, 20 Feb 2022 14:09:19 +0800 Subject: 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. --- src/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/replication.c') 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", -- cgit v1.2.1