提交 9ee99ed1 编写于 作者: E Enrico Giordani

[Fix] Replication I/O bug when AUTH is enabled.

上级 b186c277
......@@ -1557,7 +1557,6 @@ void syncWithMaster(aeEventLoop *el, int fd, void *privdata, int mask) {
redisLog(REDIS_NOTICE,
"Master replied to PING, replication can continue...");
}
WIN32_ONLY(WSIOCP_QueueNextRead(fd);)
sdsfree(err);
server.repl_state = REDIS_REPL_SEND_AUTH;
}
......@@ -1568,6 +1567,7 @@ void syncWithMaster(aeEventLoop *el, int fd, void *privdata, int mask) {
err = sendSynchronousCommand(SYNC_CMD_WRITE,fd,"AUTH",server.masterauth,NULL);
if (err) goto write_error;
server.repl_state = REDIS_REPL_RECEIVE_AUTH;
WIN32_ONLY(WSIOCP_QueueNextRead(fd);)
return;
} else {
server.repl_state = REDIS_REPL_SEND_PORT;
......@@ -1622,6 +1622,7 @@ void syncWithMaster(aeEventLoop *el, int fd, void *privdata, int mask) {
if (err) goto write_error;
sdsfree(err);
server.repl_state = REDIS_REPL_RECEIVE_CAPA;
WIN32_ONLY(WSIOCP_QueueNextRead(fd);)
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册