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:
+3
-1
@@ -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... */
|
||||
|
||||
Reference in New Issue
Block a user