Skip to content

Commit

Permalink
Revert fix #4976 just leaving the flush() part.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jun 28, 2018
1 parent 1c802ae commit 209a5fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,7 @@ NULL
serverLog(LL_WARNING,"DB reloaded by DEBUG RELOAD");
addReply(c,shared.ok);
} else if (!strcasecmp(c->argv[1]->ptr,"loadaof")) {
if (server.aof_state == AOF_OFF) {
addReply(c, shared.err);
return;
}
flushAppendOnlyFile(1);
if (server.aof_state != AOF_OFF) flushAppendOnlyFile(1);
emptyDb(-1,EMPTYDB_NO_FLAGS,NULL);
if (loadAppendOnlyFile(server.aof_filename) != C_OK) {
addReply(c,shared.err);
Expand Down

0 comments on commit 209a5fd

Please sign in to comment.