summaryrefslogtreecommitdiff
path: root/src/networking.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-05-25 00:37:56 +0200
committerantirez <antirez@gmail.com>2013-05-27 11:42:17 +0200
commit6b4635f4f5fe296f07325a2b61a0706b8fc91f8c (patch)
treedeac79faa690d0651c5f89429670e48558b22e50 /src/networking.c
parenta950f48906a7699314d2f1c3e2dee522a29e97fb (diff)
downloadredis-6b4635f4f5fe296f07325a2b61a0706b8fc91f8c.tar.gz
REPLCONF ACK command.
This special command is used by the slave to inform the master the amount of replication stream it currently consumed. it does not return anything so that we not need to consume additional bandwidth needed by the master to reply something. The master can do a number of things knowing the amount of stream processed, such as understanding the "lag" in bytes of the slave, verify if a given command was already processed by the slave, and so forth.
Diffstat (limited to 'src/networking.c')
-rw-r--r--src/networking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/networking.c b/src/networking.c
index e7879384d..071f5aafd 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -88,6 +88,8 @@ redisClient *createClient(int fd) {
c->authenticated = 0;
c->replstate = REDIS_REPL_NONE;
c->reploff = 0;
+ c->repl_ack_off = 0;
+ c->repl_ack_time = 0;
c->slave_listening_port = 0;
c->reply = listCreate();
c->reply_bytes = 0;