提交 8529dd21 编写于 作者: A antirez

SYNC not allowed with pending data on the static output buffer.

上级 6726ea5b
......@@ -457,8 +457,8 @@ void syncCommand(redisClient *c) {
* the client about already issued commands. We need a fresh reply
* buffer registering the differences between the BGSAVE and the current
* dataset, so that we can copy to other slaves if needed. */
if (listLength(c->reply) != 0) {
addReplyError(c,"SYNC and PSYNC are invalid with pending input");
if (listLength(c->reply) != 0 || c->bufpos != 0) {
addReplyError(c,"SYNC and PSYNC are invalid with pending output");
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册