diff options
author | Wang Yuan <wangyuan21@baidu.com> | 2020-08-19 15:52:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 10:52:53 +0300 |
commit | 89d544d6f263561160352db14afe8c70cdb7e707 (patch) | |
tree | 5e802fccf579d9f0870f2412dd15db0aea61279f /src/replication.c | |
parent | b87c288016c68716cbb97534b7748045ca58c953 (diff) | |
download | redis-89d544d6f263561160352db14afe8c70cdb7e707.tar.gz |
Add comments on 'slave.repldboff' when use diskless replication (#7679)
Diffstat (limited to 'src/replication.c')
-rw-r--r-- | src/replication.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/replication.c b/src/replication.c index 1e1be345c..d629a197f 100644 --- a/src/replication.c +++ b/src/replication.c @@ -1186,6 +1186,8 @@ void rdbPipeReadHandler(struct aeEventLoop *eventLoop, int fd, void *clientData, /* An error and still in connected state, is equivalent to EAGAIN */ slave->repldboff = 0; } else { + /* Note: when use diskless replication, 'repldboff' is the offset + * of 'rdb_pipe_buff' sent rather than the offset of entire RDB. */ slave->repldboff = nwritten; server.stat_net_output_bytes += nwritten; } |