From 2cd117bb9b47c265da9f1fbae4e06dda63bfe34b Mon Sep 17 00:00:00 2001 From: Shubham Taple Date: Sat, 25 Apr 2026 09:18:08 +0530 Subject: [PATCH] Use dictAddRaw since we have dict with no_value --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index acb0cf788..869e8fc75 100644 --- a/src/db.c +++ b/src/db.c @@ -1121,7 +1121,7 @@ void streamMoveIdmpKeys(dict *src, dict *dst, slotRangeArray *slots) { /* Check if key belongs to the slot range. */ if (!slotRangeArrayContains(slots, keyHashSlot(key->ptr, sdslen(key->ptr)))) continue; - if (dictAdd(dst, key, dictGetVal(de)) == DICT_OK) { + if (dictAddRaw(dst, key, NULL)) { incrRefCount(key); } dictDelete(src, key);