]> git.saurik.com Git - redis.git/commit - tests/unit/type/zset.tcl
Fixed issue #516 (ZINTERSTORE mixing sets and zsets).
authorantirez <antirez@gmail.com>
Wed, 23 May 2012 09:02:38 +0000 (11:02 +0200)
committerantirez <antirez@gmail.com>
Wed, 23 May 2012 09:12:38 +0000 (11:12 +0200)
commit4dada1b5bce3da69899eb14364142819002cf029
tree453ebc5448c1186f0838f1cfb155e0708f0491f3
parentafc6bd1b48aede03d88dfc24cf1d832bc25f9a43
Fixed issue #516 (ZINTERSTORE mixing sets and zsets).

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.
src/t_zset.c
tests/unit/type/zset.tcl