Use dictAddRaw since we have dict with no_value

This commit is contained in:
Shubham Taple 2026-04-25 09:18:08 +05:30
parent 23c513770d
commit 2cd117bb9b

View file

@ -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);