Merge pull request #6134 from zhouyuan/fix_aof

aof: fix assignment for aof_fsync_offset
This commit is contained in:
Salvatore Sanfilippo 2019-11-19 11:40:34 +01:00 committed by GitHub
commit 8e95064408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1766,7 +1766,7 @@ void backgroundRewriteDoneHandler(int exitcode, int bysignal) {
server.aof_selected_db = -1; /* Make sure SELECT is re-issued */
aofUpdateCurrentSize();
server.aof_rewrite_base_size = server.aof_current_size;
server.aof_current_size = server.aof_current_size;
server.aof_fsync_offset = server.aof_current_size;
/* Clear regular AOF buffer since its contents was just written to
* the new AOF from the background rewrite buffer. */