mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
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 */
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user