Merge pull request #6851 from oranagra/aof_rewrite_scheduled

stopAppendOnly resets aof_rewrite_scheduled
This commit is contained in:
Salvatore Sanfilippo 2020-02-06 10:23:11 +01:00 committed by GitHub
commit 58a3a3fa68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,6 +242,7 @@ void stopAppendOnly(void) {
server.aof_fd = -1; server.aof_fd = -1;
server.aof_selected_db = -1; server.aof_selected_db = -1;
server.aof_state = AOF_OFF; server.aof_state = AOF_OFF;
server.aof_rewrite_scheduled = 0;
killAppendOnlyChild(); killAppendOnlyChild();
} }