summaryrefslogtreecommitdiff
path: root/src/t_set.c
diff options
context:
space:
mode:
authorchenyang8094 <chenyang8094@users.noreply.github.com>2021-06-16 14:45:49 +0800
committerGitHub <noreply@github.com>2021-06-16 09:45:49 +0300
commite0cd3ad0de0bf2fe6ea0227e5ad7a0a489688b33 (patch)
tree799442b67bc21b1f4e70ebedd14ddde586d1d183 /src/t_set.c
parent7f342020dcbdf9abe754d6b666efdeded7063870 (diff)
downloadredis-e0cd3ad0de0bf2fe6ea0227e5ad7a0a489688b33.tar.gz
Enhance mem_usage/free_effort/unlink/copy callbacks and add GetDbFromIO api. (#8999)
Create new module type enhanced callbacks: mem_usage2, free_effort2, unlink2, copy2. These will be given a context point from which the module can obtain the key name and database id. In addition the digest and defrag context can now be used to obtain the key name and database id.
Diffstat (limited to 'src/t_set.c')
-rw-r--r--src/t_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_set.c b/src/t_set.c
index d0c54848e..b58bb6fc0 100644
--- a/src/t_set.c
+++ b/src/t_set.c
@@ -1137,7 +1137,7 @@ void sunionDiffGenericCommand(client *c, robj **setkeys, int setnum,
sdsfree(ele);
}
setTypeReleaseIterator(si);
- server.lazyfree_lazy_server_del ? freeObjAsync(NULL, dstset) :
+ server.lazyfree_lazy_server_del ? freeObjAsync(NULL, dstset, -1) :
decrRefCount(dstset);
} else {
/* If we have a target key where to store the resulting set