projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560db61
)
fixed missing incrRefCount
author
antirez
<antirez@metal.(none)>
Mon, 31 May 2010 20:56:53 +0000
(22:56 +0200)
committer
antirez
<antirez@metal.(none)>
Mon, 31 May 2010 20:56:53 +0000
(22:56 +0200)
redis.c
patch
|
blob
|
blame
|
history
diff --git
a/redis.c
b/redis.c
index a49862de24d6bdd503dbffba30a4b641b0ede3cc..a87026ff333b1e8608332207746c8ef687fef0fc 100644
(file)
--- a/
redis.c
+++ b/
redis.c
@@
-9778,6
+9778,7
@@
static int vmSwapObjectThreaded(robj *key, robj *val, redisDb *db) {
j->type = REDIS_IOJOB_PREPARE_SWAP;
j->db = db;
j->key = key;
+ incrRefCount(key);
j->id = j->val = val;
incrRefCount(val);
j->canceled = 0;