diff options
author | antirez <antirez@gmail.com> | 2013-05-25 00:37:56 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-05-27 11:42:17 +0200 |
commit | 6b4635f4f5fe296f07325a2b61a0706b8fc91f8c (patch) | |
tree | deac79faa690d0651c5f89429670e48558b22e50 /src/networking.c | |
parent | a950f48906a7699314d2f1c3e2dee522a29e97fb (diff) | |
download | redis-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.c | 2 |
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; |