]> git.saurik.com Git - redis.git/commitdiff
Debug message was printing stuff that are sometimes not initialized/valid
authorantirez <antirez@gmail.com>
Tue, 1 Jun 2010 12:22:21 +0000 (14:22 +0200)
committerantirez <antirez@gmail.com>
Tue, 1 Jun 2010 12:22:21 +0000 (14:22 +0200)
redis.c

diff --git a/redis.c b/redis.c
index b5e10d4666e9cb34123d1237df94633aabd16086..2462d85eea388ce6bc0ef35289a861323453d1b3 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -9598,8 +9598,8 @@ again:
 
             if (job->canceled) continue; /* Skip this, already canceled. */
             if (job->id == o) {
-                redisLog(REDIS_DEBUG,"*** CANCELED %p (%s) (type %d) (LIST ID %d)\n",
-                    (void*)job, (char*)o->ptr, job->type, i);
+                redisLog(REDIS_DEBUG,"*** CANCELED %p (key %s) (type %d) (LIST ID %d)\n",
+                    (void*)job, (char*)job->key->ptr, job->type, i);
                 /* Mark the pages as free since the swap didn't happened
                  * or happened but is now discarded. */
                 if (i != 1 && job->type == REDIS_IOJOB_DO_SWAP)