]> git.saurik.com Git - redis.git/commitdiff
fix for the prev fix
authorantirez <antirez@gmail.com>
Fri, 27 Aug 2010 15:06:36 +0000 (17:06 +0200)
committerantirez <antirez@gmail.com>
Fri, 27 Aug 2010 15:06:36 +0000 (17:06 +0200)
src/vm.c

index 6c0d79b022237e1502ee3c369c80dfa8576baf2c..50fb326dba12ce90dbe817adc5a3661f538807b7 100644 (file)
--- a/src/vm.c
+++ b/src/vm.c
@@ -566,7 +566,7 @@ void vmThreadedIOCompletedJob(aeEventLoop *el, int fd, void *privdata,
     REDIS_NOTUSED(mask);
     REDIS_NOTUSED(privdata);
 
-    if (privdata == NULL) trytoswap = 0; /* check the comments above... */
+    if (privdata != NULL) trytoswap = 0; /* check the comments above... */
 
     /* For every byte we read in the read side of the pipe, there is one
      * I/O job completed to process. */