mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 20:21:21 +00:00
Convert intset encoded set before Z*STORE
This commit is contained in:
committed by
antirez
parent
a7fa2baf06
commit
1ffa5d73ed
@ -615,6 +615,10 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
|
|||||||
if (obj->type == REDIS_ZSET) {
|
if (obj->type == REDIS_ZSET) {
|
||||||
src[i].dict = ((zset*)obj->ptr)->dict;
|
src[i].dict = ((zset*)obj->ptr)->dict;
|
||||||
} else if (obj->type == REDIS_SET) {
|
} 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);
|
src[i].dict = (obj->ptr);
|
||||||
} else {
|
} else {
|
||||||
zfree(src);
|
zfree(src);
|
||||||
|
Reference in New Issue
Block a user