提交 53596967 编写于 作者: A antirez

Fixed a bug in the emptyDb() new implementation.

上级 ecdbc333
......@@ -263,7 +263,7 @@ long long emptyDb(int dbnum, int flags, void(callback)(void*)) {
}
for (j = 0; j < server.dbnum; j++) {
if (dbnum != 1 && dbnum != j) continue;
if (dbnum != -1 && dbnum != j) continue;
removed += dictSize(server.db[j].dict);
if (async) {
emptyDbAsync(&server.db[j]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册