removed a no longer true assert in the VM code

This commit is contained in:
antirez 2010-04-09 18:35:24 +02:00
parent bdcb92f273
commit 10d91d7fb3

View File

@ -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);