Unverified Commit 89d544d6 authored by Wang Yuan's avatar Wang Yuan Committed by GitHub
Browse files

Add comments on 'slave.repldboff' when use diskless replication (#7679)

parent b87c2880
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment