mirror of https://mirror.osredm.com/root/redis.git
DEBUG FLUSHCACHE needs to wait that everything was synched on disk
This commit is contained in:
parent
69bfffb4a7
commit
0a0f83ab2c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue