]> git.saurik.com Git - redis.git/commitdiff
removed a no longer true assert in the VM code
authorantirez <antirez@gmail.com>
Fri, 9 Apr 2010 16:35:24 +0000 (18:35 +0200)
committerantirez <antirez@gmail.com>
Fri, 9 Apr 2010 16:35:24 +0000 (18:35 +0200)
redis.c

diff --git a/redis.c b/redis.c
index d80e56b07e8a05d9046ad0631c7b77e57c58debe..1afe8967a7e9ae0dc962bcc80589a5226dc6b914 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -2828,9 +2828,6 @@ static void decrRefCount(void *obj) {
     if (server.vm_enabled &&
         (o->storage == REDIS_VM_SWAPPED || o->storage == REDIS_VM_LOADING))
     {
-        if (o->storage == REDIS_VM_SWAPPED || o->storage == REDIS_VM_LOADING) {
-            redisAssert(o->refcount == 1);
-        }
         if (o->storage == REDIS_VM_LOADING) vmCancelThreadedIOJob(obj);
         redisAssert(o->type == REDIS_STRING);
         freeStringObject(o);