From 0a0f83ab2c02ebf1a9029a473e23ef72d037cac0 Mon Sep 17 00:00:00 2001 From: antirez Date: Sun, 9 Jan 2011 19:01:44 +0100 Subject: [PATCH] DEBUG FLUSHCACHE needs to wait that everything was synched on disk --- src/debug.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.2