mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 05:21:33 +00:00
Don't ACK the master after every command.
Sending an ACK is now moved into the replicationSendAck() function.
This commit is contained in:
@ -1868,15 +1868,6 @@ int processCommand(redisClient *c) {
|
||||
call(c,REDIS_CALL_FULL);
|
||||
if (listLength(server.ready_keys))
|
||||
handleClientsBlockedOnLists();
|
||||
/* Acknowledge the master about the execution of this command. */
|
||||
if (c->flags & REDIS_MASTER) {
|
||||
c->flags |= REDIS_MASTER_FORCE_REPLY;
|
||||
addReplyMultiBulkLen(c,3);
|
||||
addReplyBulkCString(c,"REPLCONF");
|
||||
addReplyBulkCString(c,"ACK");
|
||||
addReplyBulkLongLong(c,c->reploff);
|
||||
c->flags &= ~REDIS_MASTER_FORCE_REPLY;
|
||||
}
|
||||
}
|
||||
return REDIS_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user