mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
fixed missing incrRefCount
This commit is contained in:
parent
560db612e1
commit
7dd8e7cfdf
1
redis.c
1
redis.c
@ -9778,6 +9778,7 @@ static int vmSwapObjectThreaded(robj *key, robj *val, redisDb *db) {
|
|||||||
j->type = REDIS_IOJOB_PREPARE_SWAP;
|
j->type = REDIS_IOJOB_PREPARE_SWAP;
|
||||||
j->db = db;
|
j->db = db;
|
||||||
j->key = key;
|
j->key = key;
|
||||||
|
incrRefCount(key);
|
||||||
j->id = j->val = val;
|
j->id = j->val = val;
|
||||||
incrRefCount(val);
|
incrRefCount(val);
|
||||||
j->canceled = 0;
|
j->canceled = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user