DEBUG FLUSHCACHE needs to wait that everything was synched on disk
This commit is contained in:
parent
f261a5d500
commit
819b03213f
@ -182,6 +182,9 @@ void debugCommand(redisClient *c) {
|
|||||||
addReplyError(c, "DEBUG FLUSHCACHE called with diskstore off.");
|
addReplyError(c, "DEBUG FLUSHCACHE called with diskstore off.");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
/* To flush the whole cache we need to wait for everything to
|
||||||
|
* be flushed on disk... */
|
||||||
|
cacheForcePointInTime();
|
||||||
emptyDb();
|
emptyDb();
|
||||||
addReply(c,shared.ok);
|
addReply(c,shared.ok);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user