Merge pull request #5903 from soloestoy/sunionstore-lazyfree

try lazyfree temp set in SUNION & SDIFF
This commit is contained in:
Salvatore Sanfilippo 2019-03-12 17:20:52 +01:00 committed by GitHub
commit c02b414e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1064,7 +1064,8 @@ void sunionDiffGenericCommand(client *c, robj **setkeys, int setnum,
sdsfree(ele); sdsfree(ele);
} }
setTypeReleaseIterator(si); setTypeReleaseIterator(si);
decrRefCount(dstset); server.lazyfree_lazy_server_del ? freeObjAsync(dstset) :
decrRefCount(dstset);
} else { } else {
/* If we have a target key where to store the resulting set /* If we have a target key where to store the resulting set
* create this key with the result set inside */ * create this key with the result set inside */