HAPLO-2: dbDelete expects an robj, but items in the expires hashtable are just char* keys. fixed by pasting the 2 lines from dbDelete and using the key directly instead of robj->ptr.

This commit is contained in:
Robey Pointer
2010-08-19 15:28:52 -07:00
parent f737f27dd7
commit 0bccb9f08c
+3 -1
View File
@@ -1335,7 +1335,9 @@ void freeMemoryIfNeeded(void) {
minttl = t;
}
}
dbDelete(server.db+j,minkey);
dictDelete(server.db[j].expires,minkey);
dictDelete(server.db[j].dict,minkey);
}
}
if (!freed) return; /* nothing to free... */