From b4d06792321c7560e3f38ab394ed839c60791e8f Mon Sep 17 00:00:00 2001 From: John Sully Date: Sun, 14 Mar 2021 03:21:09 +0000 Subject: [PATCH] Ensure the hash is passed through when moving tombstones Former-commit-id: 91c8d2d38a33175c64c987b75e94c4b8782a3cdc --- src/snapshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapshot.cpp b/src/snapshot.cpp index 17ff5d642..8a593d4a9 100644 --- a/src/snapshot.cpp +++ b/src/snapshot.cpp @@ -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)