From 13a92a5bb1bed9dc34442613b65d6bc1b43a6b7e Mon Sep 17 00:00:00 2001 From: deep011 Date: Wed, 16 Nov 2016 11:04:33 +0800 Subject: [PATCH] fix a possible bug for 'replconf getack' --- src/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replication.c b/src/replication.c index 67091dd0..7a0a99c6 100644 --- a/src/replication.c +++ b/src/replication.c @@ -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);