提交 a970f5ca 编写于 作者: Z zionwu 提交者: antirez

fix issue 1787

上级 9f5ab869
......@@ -1333,6 +1333,7 @@ void zremCommand(redisClient *c) {
zobj->ptr = zzlDelete(zobj->ptr,eptr);
if (zzlLength(zobj->ptr) == 0) {
dbDelete(c->db,key);
keyremoved = 1;
break;
}
}
......@@ -1356,6 +1357,7 @@ void zremCommand(redisClient *c) {
if (htNeedsResize(zs->dict)) dictResize(zs->dict);
if (dictSize(zs->dict) == 0) {
dbDelete(c->db,key);
keyremoved = 1;
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册