mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
Use dictAddRaw since we have dict with no_value
This commit is contained in:
parent
23c513770d
commit
2cd117bb9b
1 changed files with 1 additions and 1 deletions
2
src/db.c
2
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue