• antirez's avatar
    Fixed issue #516 (ZINTERSTORE mixing sets and zsets). · 4dada1b5
    antirez authored
    Weeks ago trying to fix an harmless GCC warning I introduced a bug in
    the ziplist-encoded implementations of sorted sets.
    
    The bug completely broke zuiNext() iterator, that is used in the
    ZINTERSTORE and ZUNIONSTORE implementation, so those two commands are no
    longer reliable starting from Redis version 2.4.12 and latest 2.6.0-RC
    releases.
    
    This commit fixes the problem and adds a regression test.
    4dada1b5
t_zset.c 68.1 KB