Don't ACK the master after every command.

Sending an ACK is now moved into the replicationSendAck() function.
This commit is contained in:
antirez
2013-05-27 10:41:53 +02:00
parent 0000d5334d
commit a74f8fe1ad
2 changed files with 17 additions and 9 deletions

View File

@ -1798,15 +1798,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;
}