From: antirez Date: Sun, 9 Jan 2011 18:01:44 +0000 (+0100) Subject: DEBUG FLUSHCACHE needs to wait that everything was synched on disk X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/0a0f83ab2c02ebf1a9029a473e23ef72d037cac0?ds=sidebyside DEBUG FLUSHCACHE needs to wait that everything was synched on disk --- diff --git a/src/debug.c b/src/debug.c index 49f7ab2a..d2d14cdb 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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;