]> git.saurik.com Git - redis.git/commitdiff
stupid bug fixed
authorantirez <antirez@gmail.com>
Mon, 3 Jan 2011 16:37:20 +0000 (17:37 +0100)
committerantirez <antirez@gmail.com>
Mon, 3 Jan 2011 16:37:20 +0000 (17:37 +0100)
src/dscache.c

index 06264ef6f2a9c6e5af7394343fb6b208b0dbb840..fb862c0580a6517a03fa834f7537edab969c0521 100644 (file)
@@ -356,7 +356,7 @@ void vmThreadedIOCompletedJob(aeEventLoop *el, int fd, void *privdata,
                  *
                  * So we set a negative cache entry avoiding that the
                  * resumed client will block load what does not exist... */
-                if (dictFind(j->db->dict,j->key) == NULL &&
+                if (dictFind(j->db->dict,j->key->ptr) == NULL &&
                     (cacheScheduleIOGetFlags(j->db,j->key) &
                       (REDIS_IO_SAVE|REDIS_IO_SAVEINPROG)) == 0)
                 {