Ensure the hash is passed through when moving tombstones

Former-commit-id: 91c8d2d38a33175c64c987b75e94c4b8782a3cdc
This commit is contained in:
John Sully 2021-03-14 03:21:09 +00:00
parent b678ff7d3e
commit b4d0679232

View File

@ -393,7 +393,7 @@ void redisDbPersistentData::endSnapshot(const redisDbPersistentDataSnapshot *psn
#ifdef CHECKED_BUILD
serverAssert(m_spdbSnapshotHOLDER->m_pdbSnapshot->find_cached_threadsafe((const char*)dictGetKey(de)) != nullptr);
#endif
dictAdd(m_spdbSnapshotHOLDER->m_pdictTombstone, sdsdupshared((sds)dictGetKey(de)), nullptr);
dictAdd(m_spdbSnapshotHOLDER->m_pdictTombstone, sdsdupshared((sds)dictGetKey(de)), dictGetVal(de));
continue;
}
else if (deSnapshot == nullptr)