Skip to content

Commit 1f0c933

Browse files
committed
avoid extra ref count incrementing in hashTypePropagateDeletion
Signed-off-by: Ran Shidlansik <ranshid@amazon.com>
1 parent 6ee497c commit 1f0c933

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/t_hash.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,6 @@ void hashTypePropagateDeletion(serverDb *db, sds key, void *entry) {
480480
argv[1] = createStringObject(key, sdslen(key));
481481
argv[2] = createStringObject(field, sdslen(field));
482482
incrRefCount(argv[0]);
483-
incrRefCount(argv[1]);
484-
incrRefCount(argv[2]);
485483

486484
/* If the primary decided to delete a key we must propagate it to replicas no matter what.
487485
* Even if module executed a command without asking for propagation. */

0 commit comments

Comments
 (0)