Skip to content

Commit

Permalink
Merge pull request redis#3950 from kensou97/unstable
Browse files Browse the repository at this point in the history
update block->free after some diff data are written to the child process
  • Loading branch information
antirez authored Apr 20, 2017
2 parents 7d9dd80 + 5f88bd3 commit 3773c06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aof.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3773c06

Please sign in to comment.