mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
update block->free after some diff data are written to the child process
This commit is contained in:
parent
271733f4f8
commit
5f88bd320e
@ -115,6 +115,7 @@ void aofChildWriteDiffData(aeEventLoop *el, int fd, void *privdata, int mask) {
|
||||
if (nwritten <= 0) return;
|
||||
memmove(block->buf,block->buf+nwritten,block->used-nwritten);
|
||||
block->used -= nwritten;
|
||||
block->free += nwritten;
|
||||
}
|
||||
if (block->used == 0) listDelNode(server.aof_rewrite_buf_blocks,ln);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user