mirror of
https://github.com/fluencelabs/redis
synced 2025-05-16 12:31:20 +00:00
Fix GEORADIUS STORE/DIST refcount after backport to 3.2.
This commit is contained in:
parent
123cd88286
commit
158d1e2fbf
@ -615,6 +615,8 @@ void georadiusGeneric(client *c, int type) {
|
||||
robj *ele = createObject(OBJ_STRING,gp->member);
|
||||
|
||||
if (maxelelen < elelen) maxelelen = elelen;
|
||||
incrRefCount(ele); /* Set refcount to 2 since we reference the
|
||||
object both in the skiplist and dict. */
|
||||
znode = zslInsert(zs->zsl,score,ele);
|
||||
serverAssert(dictAdd(zs->dict,ele,&znode->score) == DICT_OK);
|
||||
gp->member = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user