Unverified Commit 5517f362 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Remove duplicate dbid lookup in performEvictions. (#9063)

Minor code cleanup.
parent fb140a1b
......@@ -572,10 +572,10 @@ int performEvictions(void) {
bestdbid = pool[k].dbid;
if (server.maxmemory_policy & MAXMEMORY_FLAG_ALLKEYS) {
de = dictFind(server.db[pool[k].dbid].dict,
de = dictFind(server.db[bestdbid].dict,
pool[k].key);
} else {
de = dictFind(server.db[pool[k].dbid].expires,
de = dictFind(server.db[bestdbid].expires,
pool[k].key);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment