mirror of
https://github.com/fluencelabs/redis
synced 2025-05-02 05:52:13 +00:00
Convert intset encoded set before Z*STORE
This commit is contained in:
parent
a7fa2baf06
commit
1ffa5d73ed
@ -615,6 +615,10 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
|
||||
if (obj->type == REDIS_ZSET) {
|
||||
src[i].dict = ((zset*)obj->ptr)->dict;
|
||||
} else if (obj->type == REDIS_SET) {
|
||||
if (obj->encoding == REDIS_ENCODING_INTSET)
|
||||
setTypeConvert(obj, REDIS_ENCODING_HT);
|
||||
|
||||
redisAssert(obj->encoding == REDIS_ENCODING_HT);
|
||||
src[i].dict = (obj->ptr);
|
||||
} else {
|
||||
zfree(src);
|
||||
|
Loading…
x
Reference in New Issue
Block a user