Add comments on 'slave.repldboff' when use diskless replication (#7679)
This commit is contained in:
parent
b87c288016
commit
89d544d6f2
@ -1186,6 +1186,8 @@ void rdbPipeReadHandler(struct aeEventLoop *eventLoop, int fd, void *clientData,
|
|||||||
/* An error and still in connected state, is equivalent to EAGAIN */
|
/* An error and still in connected state, is equivalent to EAGAIN */
|
||||||
slave->repldboff = 0;
|
slave->repldboff = 0;
|
||||||
} else {
|
} 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;
|
slave->repldboff = nwritten;
|
||||||
server.stat_net_output_bytes += nwritten;
|
server.stat_net_output_bytes += nwritten;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user