Commit 0a0f83ab authored by antirez's avatar antirez
Browse files

DEBUG FLUSHCACHE needs to wait that everything was synched on disk

parent 69bfffb4
......@@ -182,6 +182,9 @@ void debugCommand(redisClient *c) {
addReplyError(c, "DEBUG FLUSHCACHE called with diskstore off.");
return;
} else {
/* To flush the whole cache we need to wait for everything to
* be flushed on disk... */
cacheForcePointInTime();
emptyDb();
addReply(c,shared.ok);
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment