mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
SYNC not allowed with pending data on the static output buffer.
This commit is contained in:
parent
da315d3325
commit
d2a0348a49
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user