Fix bug merging LFU fix

Former-commit-id: 319099e1cb337d13444c16df1b5e1c300e6f2d15
This commit is contained in:
John Sully 2020-05-11 01:05:57 -04:00
parent 0c3406eaa4
commit 7782f1e095

View File

@ -284,7 +284,7 @@ void dbOverwrite(redisDb *db, robj *key, robj *val, bool fRemoveExpire) {
auto itr = db->find(key); auto itr = db->find(key);
serverAssertWithInfo(NULL,key,itr != nullptr); serverAssertWithInfo(NULL,key,itr != nullptr);
lookupKeyUpdateObj(val, LOOKUP_NONE); lookupKeyUpdateObj(itr.val(), LOOKUP_NONE);
db->dbOverwriteCore(itr, key, val, !!g_pserver->fActiveReplica, fRemoveExpire); db->dbOverwriteCore(itr, key, val, !!g_pserver->fActiveReplica, fRemoveExpire);
} }