mirror of
https://github.com/fluencelabs/redis
synced 2025-04-03 00:01:04 +00:00
fix issue 1787
This commit is contained in:
parent
39603a7e31
commit
dc8584696a
@ -1333,6 +1333,7 @@ void zremCommand(redisClient *c) {
|
|||||||
zobj->ptr = zzlDelete(zobj->ptr,eptr);
|
zobj->ptr = zzlDelete(zobj->ptr,eptr);
|
||||||
if (zzlLength(zobj->ptr) == 0) {
|
if (zzlLength(zobj->ptr) == 0) {
|
||||||
dbDelete(c->db,key);
|
dbDelete(c->db,key);
|
||||||
|
keyremoved = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1356,6 +1357,7 @@ void zremCommand(redisClient *c) {
|
|||||||
if (htNeedsResize(zs->dict)) dictResize(zs->dict);
|
if (htNeedsResize(zs->dict)) dictResize(zs->dict);
|
||||||
if (dictSize(zs->dict) == 0) {
|
if (dictSize(zs->dict) == 0) {
|
||||||
dbDelete(c->db,key);
|
dbDelete(c->db,key);
|
||||||
|
keyremoved = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user