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.
This commit is contained in:
rangerzhang 2022-02-20 14:09:19 +08:00 committed by GitHub
parent c0ea77f0e1
commit 9b0fd9f4d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",