]> git.saurik.com Git - redis.git/commit - src/t_zset.c
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:43 +0000 (11:12 +0200)
commit348ee1a40a4d8105dfaf6fa2ab2dffc15a47d86d
treec37b1b61e4d05835d0856ad2e48fcb96c2fb2c41
parent2bcd18a2e95ba1278e8ab4671a6987416800e36f
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