antirez
b0a2093956
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.
2012-05-23 11:08:33 +02:00
antirez
f0c3b249cb
Issue #330 regression test.
2012-02-16 16:15:13 +01:00
antirez
5bb2565959
Added regression test for ZUNIONSTORE creating NaN (github issue #264 )
2011-12-23 09:34:41 +01:00
antirez
00c7f312cc
regression test for bug 593 added
2011-09-12 10:54:43 +02:00
Pieter Noordhuis
9c3a89853c
HDEL: Abort deleting fields when hash is removed
2011-07-27 12:30:35 +02:00
antirez
619174117d
new test engine backported to 2.4
2011-07-12 09:40:54 +02:00
antirez
1ecfcb9380
Variadic SADD tests
2011-06-20 17:17:10 +02:00
antirez
5fca35da3f
disabled development test entry, tests moved in the right place
2011-05-31 20:37:59 +02:00
antirez
83533b622e
ZREM tests
2011-05-31 20:34:02 +02:00
antirez
51501514e9
Fix for the variadic version of SREM. Regression test added.
2011-05-31 20:15:25 +02:00
antirez
09843df1dd
test for the BRPOPLPUSH issue 561 related issues
2011-05-31 12:16:16 +02:00
antirez
10e4b58312
Fix for ZUNIONSTORE bug when there is an empty set among input sets. Regression test added.
2011-05-19 17:59:13 +02:00
antirez
604d26ffde
ZINTERSTORE regressiont test with two sets, intset+hashtable
2011-05-12 20:20:25 +02:00
antirez
29a87f23b1
Variadic SREM backported from unstable
2011-04-21 17:31:10 +02:00
antirez
5b97a708fc
variadic HDEL backported from unstable to 2.4
2011-04-19 17:14:44 +02:00
Pieter Noordhuis
687054849e
Merge branch '2.4' into 2.4-zset
2011-04-15 17:47:10 +02:00
antirez
1b905277bb
tests for variadic list push
2011-04-15 17:15:59 +02:00
Pieter Noordhuis
edfd6ae76b
Test for ENCODING_SKIPLIST instead of ENCODING_RAW
2011-04-06 16:10:40 +02:00
Pieter Noordhuis
763d6165ea
Test that sorted sets are removed when empty
2011-03-22 16:09:22 +01:00
Pieter Noordhuis
366e872d4d
Test both sorted set encodings for every test
2011-03-22 16:09:22 +01:00
Pieter Noordhuis
99cec798bb
Test for empty inner range when looking for elements in range
2011-03-22 16:09:21 +01:00
Pieter Noordhuis
8c3b630561
Test for ranges where min > max
2011-03-22 16:03:22 +01:00
Pieter Noordhuis
453a906fc9
Move logic concerned with zset ranges
...
This also optimizes ZREVRANGEBYSCORE for pathological cases where a
sorted set contains many elements with the same score. Previously,
it would traverse the list from back to front in such a case.
2011-03-22 16:03:22 +01:00
Pieter Noordhuis
3becef9ee6
Reverse commits changing sorted set code for 2.2
2011-01-17 11:15:50 +01:00
Pieter Noordhuis
7ac1b364fe
Merge branch 'zset-range' into 2.2
2011-01-13 16:30:02 +01:00
Pieter Noordhuis
039357e471
Move logic concerned with zset ranges
...
This also optimizes ZREVRANGEBYSCORE for pathological cases where a
sorted set contains many elements with the same score. Previously,
it would traverse the list from back to front in such a case.
2010-12-07 23:21:07 +01:00
Pieter Noordhuis
ecf9401415
Fix case and indent
2010-12-06 16:04:42 +01:00
Pieter Noordhuis
8a88c368ed
Check other blocked clients when value could not be pushed
2010-12-06 16:04:10 +01:00
Michel Martens & Damian Janowski
baa14ef913
Fix BRPOPLPUSH behavior for all use cases.
2010-11-29 23:52:07 -03:00
Damian Janowski & Michel Martens
7c25a43adc
Handle BRPOPLPUSH inside a transaction.
2010-11-29 23:52:07 -03:00
Damian Janowski & Michel Martens
ba3b474111
Refactor code for BRPOPLPUSH.
2010-11-29 23:52:07 -03:00
Damian Janowski & Michel Martens
b2a7fd0cf7
BRPOPLPUSH.
2010-11-29 23:52:07 -03:00
antirez
73abd0a9d2
Merge remote branch 'remotes/pietern/zrevrangebyscore'
2010-10-28 14:12:25 +02:00
Pieter Noordhuis
e584d82fec
Return error to client on wrong type for HMGET
2010-10-26 12:33:17 +02:00
Pieter Noordhuis
7236fdb22f
Return error when min and/or max in the sorted set range spec is not a double
2010-10-13 21:59:24 +02:00
Pieter Noordhuis
91504b6cbe
Make ZREMRANGEBYSCORE accept the same range spec as ZRANGEBYSCORE
...
This allows to use inclusive/exclusive bounds for min and max when
deleting a range of scores from a sorted set.
2010-10-13 21:43:58 +02:00
Pieter Noordhuis
26f3388d27
Merge branch 'master' into zrevrangebyscore
2010-10-13 20:29:50 +02:00
antirez
4610b0332c
intset stress testing added, ziplist stress testing relocated in a more appropriate place
2010-09-24 11:15:06 +02:00
antirez
ef27ba988b
explicit regression test for a ziplist bug added
2010-09-24 10:37:00 +02:00
antirez
1a06bf93c4
ziplist implementation fuzzy tests
2010-09-24 10:30:15 +02:00
Pieter Noordhuis
25bb8a4452
Add ZREVRANGEBYSCORE and refactor Z*RANGEBYSCORE
2010-09-16 14:38:07 +02:00
Pieter Noordhuis
3c23ee1ba2
Fix another test that sometimes returned the swapped object instead of encoding
2010-09-13 16:59:46 +02:00
Pieter Noordhuis
efc5d4cc0d
Fix test that sometimes returned the swapped object instead of encoding
2010-09-07 11:49:33 +02:00
antirez
f7f12a606c
resolved conflict merging pietern/bpop-timeout
2010-08-31 11:23:12 +02:00
Pieter Noordhuis
1eb13e4913
Fix set tests to make sets have a deterministic encoding
2010-08-31 09:37:35 +02:00
antirez
fb92ecece7
BLPOP inside MULTI/EXEC block no longer crashes, instead if the list is empty the behavior is like if the timeout is reached. This fixes Issue 285
2010-08-30 16:31:03 +02:00
Pieter Noordhuis
94364d53b4
Verify that the blocking pop timeout value is a non-negative integer
2010-08-26 14:05:14 +02:00
Pieter Noordhuis
87c74dfaa8
Check if stroll return value was clamped
2010-08-20 13:42:42 +02:00
Pieter Noordhuis
aaada3f962
Merge branch 'master' into intset-split
...
Conflicts:
src/Makefile
src/t_set.c
2010-08-20 12:40:55 +02:00
antirez
0c7a9dec65
Merge remote branch 'pietern/list-test'
2010-07-31 13:55:06 +02:00