fix a possible bug for 'replconf getack'

This commit is contained in:
deep011 2016-11-16 11:04:33 +08:00
parent b399288ff5
commit 13a92a5bb1

View File

@ -758,7 +758,7 @@ void replconfCommand(client *c) {
/* REPLCONF GETACK is used in order to request an ACK ASAP
* to the slave. */
if (server.masterhost && server.master) replicationSendAck();
/* Note: this command does not reply anything! */
return;
} else {
addReplyErrorFormat(c,"Unrecognized REPLCONF option: %s",
(char*)c->argv[j]->ptr);