提交 0bccb9f0 编写于 作者: R Robey Pointer

HAPLO-2: dbDelete expects an robj, but items in the expires hashtable are just...

HAPLO-2: dbDelete expects an robj, but items in the expires hashtable are just char* keys. fixed by pasting the 2 lines from dbDelete and using the key directly instead of robj->ptr. 
上级 f737f27d
......@@ -1335,7 +1335,9 @@ void freeMemoryIfNeeded(void) {
minttl = t;
}
}
dbDelete(server.db+j,minkey);
dictDelete(server.db[j].expires,minkey);
dictDelete(server.db[j].dict,minkey);
}
}
if (!freed) return; /* nothing to free... */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册