Commit Graph

724 Commits

Author SHA1 Message Date
93db956e06 make sure that OBJECT ENCODING returns skiplist for sorted sets, and not raw, so that once we will merge specially encoded sorted sets everything will make sense. 2011-04-06 15:38:08 +02:00
0b01578d2e Merge branch '2.2' of github.com:antirez/redis into 2.2 2011-04-06 12:23:44 +02:00
920c45b818 version is now 2.2.3 2011-04-06 12:23:16 +02:00
cf6c3f4b04 OBJECT command implemented 2011-04-06 12:22:09 +02:00
fb90934c47 fixed memory leak introduced with the previous commit. Many thanks to Pieter Noordhuis for spotting it in no time 2011-03-31 19:54:08 +02:00
207ca3cedd Merge branch '2.2' of github.com:antirez/redis into 2.2 2011-03-31 16:45:27 +02:00
97d3b7dc8d Fixed issue #503. MONITOR + QUIT could crash the server, there are actually other interactions that could have the same effect (for instance Pub/Sub). 2011-03-31 16:45:05 +02:00
abdbfc14c0 Fixed sdssplitargs() handling of hex-style escapes. 2011-03-22 22:49:33 +01:00
724376a0df Backport patch: object swappability for encoded sorted sets 2011-03-22 16:35:50 +01:00
476f044db6 Backport patch: don't use blob-saving 2011-03-22 16:30:29 +01:00
8b2449dca0 Backport patch: signalModifiedKey (unstable) -> touchWatchedKey (2.2) 2011-03-22 16:12:26 +01:00
2e18193f5b Remove sorted set when empty after ZREMRANGEBY* 2011-03-22 16:09:22 +01:00
7f9c973467 Fix DEBUG DIGEST, SORT and AOF rewrite 2011-03-22 16:09:22 +01:00
4d8f13ddc3 Offset should be size_t 2011-03-22 16:09:21 +01:00
3e518093b6 Remove unused function 2011-03-22 16:09:21 +01:00
99cec798bb Test for empty inner range when looking for elements in range 2011-03-22 16:09:21 +01:00
ccf96e197b Make zzl API unaware of the robj where the ziplist is stored 2011-03-22 16:09:21 +01:00
8f0a41be98 Encode sorted set after loading from dump 2011-03-22 16:09:21 +01:00
63b29390b2 Convert encoding of result when in limits 2011-03-22 16:08:42 +01:00
46aa0e2472 Remove comment 2011-03-22 16:08:03 +01:00
07d9e35637 Generic iterator code for usage in ZUNIONSTORE/ZINTERSTORE 2011-03-22 16:08:03 +01:00
2e12082b3e Make zzlLength take a ziplist argument 2011-03-22 16:08:03 +01:00
08532b1e99 Add new string to long long function 2011-03-22 16:08:03 +01:00
771ea6e1a6 Fix used function in ZCARD 2011-03-22 16:08:03 +01:00
c5802e3f4a Convert encoding when thresholds overflow 2011-03-22 16:08:03 +01:00
eab8382d18 Configurable thresholds for encoded sorted sets 2011-03-22 16:08:03 +01:00
efc77ad91c Persistence code for encoded sorted sets 2011-03-22 16:07:37 +01:00
a3886e29a6 Support dual encoding for more commands 2011-03-22 16:06:07 +01:00
db912c5a93 Support dual encoding for ZRANGEBYSCORE et al 2011-03-22 16:06:07 +01:00
2165ac5573 Helpers to move around in encoded sorted set 2011-03-22 16:06:07 +01:00
f8224a4f90 Support dual encoding for ZREMRANGEBYRANK 2011-03-22 16:06:07 +01:00
679de7ae2f Support dual encoding for ZRANGE 2011-03-22 16:05:45 +01:00
efc3f1783d Properly free encoded sorted set 2011-03-22 16:05:45 +01:00
0b8c9eac68 Look up and remove elements by range 2011-03-22 16:05:45 +01:00
4c36024f51 Typo 2011-03-22 16:05:05 +01:00
8e1db6a05f Little less obfuscation 2011-03-22 16:05:05 +01:00
d3882605c0 Support dual encoding in ZREM 2011-03-22 16:05:05 +01:00
3d6eade781 Don't encode element argument when dealing with ziplist 2011-03-22 16:04:33 +01:00
6b017e615f Initial work for ziplist backed sorted sets 2011-03-22 16:04:33 +01:00
3164869d78 Add function to create ziplist-backed sorted set 2011-03-22 16:03:23 +01:00
b38c299886 Fast conversion of double when representable as long long 2011-03-22 16:03:23 +01:00
5b40d6e656 Rename zset range functions 2011-03-22 16:03:22 +01:00
8c3b630561 Test for ranges where min > max 2011-03-22 16:03:22 +01:00
4484e3b591 Compiler should decide on inlining 2011-03-22 16:03:22 +01:00
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
de5d4be994 Merge remote branch 'pietern/2.2-sigs' into 2.2 2011-03-07 12:21:41 +01:00
69bfdcf7d4 Show database number in cli prompt when non-zero 2011-03-06 21:10:50 +01:00
699465c31e Store SELECTed database for reconnect (issue #468) 2011-03-06 20:53:13 +01:00
45332cc47b Minor memory leak in redis-cli (issue #464) 2011-03-06 20:53:12 +01:00
2d2c17b075 Save RDB on SIGTERM (see issue #471) 2011-03-06 17:49:22 +01:00