]> git.saurik.com Git - redis.git/commitdiff
First fix, still broken
authorantirez <antirez@gmail.com>
Tue, 29 Dec 2009 20:32:37 +0000 (15:32 -0500)
committerantirez <antirez@gmail.com>
Tue, 29 Dec 2009 20:32:37 +0000 (15:32 -0500)
redis.c

diff --git a/redis.c b/redis.c
index 3d8cc702fbb722da7f27fc556d31f65f5c5499e0..71f1594f057fb586244985d2698cf45f482f4c2d 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -5487,7 +5487,7 @@ static void blockForKey(redisClient *c, robj *key, time_t timeout) {
         int retval;
 
         l = listCreate();
-        retval = dictAdd(c->db->blockingkeys,c,l);
+        retval = dictAdd(c->db->blockingkeys,key,l);
         assert(retval == DICT_OK);
     } else {
         l = dictGetEntryVal(de);