提交 0a0f83ab 编写于 作者: A antirez

DEBUG FLUSHCACHE needs to wait that everything was synched on disk

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册