Commit Graph

265 Commits

Author SHA1 Message Date
antirez
333fd21615 TODO change and minor SETNX optimization 2009-12-10 16:38:24 +01:00
antirez
231d758eec in rdbLoadDoubleValue now the buffer is nul terminated correctly. Thanks valgrind. 2009-12-06 01:42:41 +01:00
antirez
83c6a61889 printf format warnings fixed by casting 2009-12-06 01:25:37 +01:00
antirez
5acdc75d66 Regression tests for SETNX and MSETNX bugs added 2009-12-06 01:16:12 +01:00
antirez
906573e78d SETNX and MSETNX now respect the delete-on-write operation of EXPIREing keys 2009-12-06 01:09:15 +01:00
antirez
71c54b21e2 Fixed daemonization when using kqueue/kevent. Now the server initialization is performed *after* the daemonization 2009-12-06 00:59:35 +01:00
antirez
76d31044d4 more HTML doc changes 2009-12-05 19:35:15 +01:00
antirez
682ac7248a use __attribute__ format in sdscatprintf() when the compiler is GCC. Fixed format bugs resulting from the new warnings. 2009-12-05 13:50:36 +01:00
antirez
da0a162077 compilation problem on 64bit mac os x 10.5 possibly fixed 2009-12-01 11:53:00 +01:00
antirez
dfc5e96ce5 Fixed issued #85 (getDecodedObject: Assertion 1 != 1 failed. While sorting a set), added a smarter assert() function to dump the stacktrace, provided a macro to initalize Redis objects on the stack to avoid this kind of bugs. 2009-11-30 20:25:06 +01:00
antirez
d07ffa178d Version chagned to 1.100, also known as the first first 2.0 beta version 2009-11-29 10:44:25 +01:00
antirez
0b13687c25 more tests in test-redis.tcl, some minor fix 2009-11-29 10:29:08 +01:00
antirez
a5eb649bfa SORT support for sorted sets 2009-11-29 10:10:35 +01:00
antirez
80181f7848 Implemented LIMIT option in ZRANGEBYSCORE. We now enter feature-freeze 2009-11-28 22:01:13 +01:00
antirez
c74e7c7757 ZRANGEBYSCORE memory leak fixed, ZRANGEBYSCORE initial test added 2009-11-28 18:03:09 +01:00
antirez
1c85b79fef INFO refactored. Stack trace on memory corruption now dumps the same information as the INFO command 2009-11-28 17:13:32 +01:00
antirez
7a932b74cc ifdefs added to use kevent on Free Open and Net BSD as well. INFO and ae.c modified in order to report the multiplexing API in use 2009-11-28 17:06:28 +01:00
antirez
1751139117 Enabled object encoding for multiple keys in MSET. Added a test for memory leaks in test-redis.tcl when running on Mac OS X 2009-11-28 16:55:05 +01:00
antirez
1fd9bc8adc Changes to TODO list, commented a function in redis.c 2009-11-28 15:31:40 +01:00
antirez
0f151ef1a0 zero length bulk data reading fixed in loadAppendOnlyFile() 2009-11-26 19:18:52 +01:00
antirez
85a831729f append only file fixes 2009-11-26 19:03:32 +01:00
antirez
9d65a1bbae log rebuilding, random refactoring, work in progress please wait for an OK commit before to use this version 2009-11-26 18:10:02 +01:00
antirez
210e29f7d2 DEBUG RELOAD implemented, and test-redis.tcl modified to use it to check for persistence consistency. 2009-11-24 21:44:20 +01:00
antirez
1c0abf3c5d Redis version set to 1.07 2009-11-24 21:29:08 +01:00
antirez
6c446631da sorted sets saving fixed 2009-11-24 17:52:46 +01:00
antirez
266373b283 ae.c now supports multiple polling API modules, even if only ae_select.c is implemented currently. Also adding and removing an event is now O(1). 2009-11-23 18:50:39 +01:00
antirez
a96ffc6641 version incremented up to 1.06 2009-11-21 16:40:08 +01:00
antirez
ed5a857a6d Fixed a SORT memory leak that should never happen in practice 2009-11-21 13:46:34 +01:00
antirez
28173a49a7 SORT GET # implemented, with a test 2009-11-21 13:25:51 +01:00
antirez
91d71bfc79 ZINCRBY return value fixed 2009-11-20 11:22:20 +01:00
antirez
7db723adb2 ZINCRSCOREBY => ZINCRBY 2009-11-20 09:18:40 +01:00
antirez
e2665397a7 ZINCRSCOREBY implemented 2009-11-19 19:48:46 +01:00
antirez
37f68e6102 writev() finally uncommented again 2009-11-19 19:04:54 +01:00
antirez
b892cabed4 redis-benchmark hopefully last bug with multi bulk reply fixed 2009-11-19 18:44:18 +01:00
antirez
7ea870c092 Use writev(2) if glue output buffers is disabled 2009-11-19 11:46:28 +01:00
antirez
c28b42acd9 more experiments with long replies, glue output buffer, and writev. 2009-11-18 20:32:03 +01:00
antirez
cc30e368a3 benchmarking with different number of LRANGE elements. Ability to change the glue output buffer limit by #define 2009-11-18 19:41:25 +01:00
antirez
2895e86267 support for writev implemented but currently ifdef-ed in order to understan why I can't see the improvements expected. Btw code provided by Stefano Barbato 2009-11-17 17:46:44 +01:00
antirez
ef3ac64a27 Solaris fix thanks to Alan Harder 2009-11-12 21:49:15 +01:00
antirez
96d8b4eeba ZSCORE fixed, now returns NULL on missing key or missing element 2009-11-12 21:35:05 +01:00
antirez
0f5f7e9a82 LPOPPUSH renamed into RPOPLPUSH 2009-11-12 11:21:26 +01:00
antirez
fee803ba3e Removed a long time warning compiling with recent GCC on Linux 2009-11-11 19:59:54 +01:00
antirez
12f9d551b6 LPUSHPOP first implementation 2009-11-11 18:38:37 +01:00
antirez
bcfc686db7 Tcl script, make target, and redis.c changes to build the static symbol table automagically 2009-11-10 19:20:32 +01:00
antirez
f232429386 Implemented a much better lazy expiring algorithm for EXPIRE 2009-11-10 17:48:01 +01:00
root
121796f792 fixed a refcounting bug with SORT ... STORE leading to random crashes 2009-11-04 11:59:27 +01:00
antirez
d0ccebcf46 masterauth option merged, thanks to Anthony Lauzon 2009-11-04 09:53:43 +01:00
antirez
eaa256ad25 ZSets double to string serialization fixed 2009-11-03 14:36:38 +01:00
antirez
443c6409c3 SORT STORE option 2009-11-01 15:29:38 +01:00
antirez
d8f8b666f4 now Redis prints DB stats just after the startup without to wait a second for the first report 2009-11-01 14:14:02 +01:00
antirez
33ed1a426d another fix for append only mode, now read-only operations are not appended 2009-11-01 13:43:34 +01:00
antirez
1766c6dadc appendfsync parsing in config file fixed. If you benchmarked Redis against different appendfsync options is time to try again ;) 2009-11-01 11:55:46 +01:00
antirez
9387d17dfe append only file loading fixed 2009-11-01 11:05:50 +01:00
antirez
f80dff6212 first version of append only file loading -- STILL BROKEN don't use it 2009-11-01 10:54:55 +01:00
antirez
412a8bcea3 Fixed Issue 83:Using TYPE on a zset results in a malformed response from the Redis server 2009-10-31 23:03:10 +01:00
antirez
71eba4775d Fixed compilation on Linux 2009-10-31 14:32:01 +01:00
antirez
4e141d5a21 append only mode is now able to translate EXPIRE into EXPIREAT transparently 2009-10-30 17:20:24 +01:00
antirez
0154acdc57 appendfsync is now set to NO by default 2009-10-30 16:35:16 +01:00
antirez
48f0308ad3 support for appendonly mode no, always, everysec 2009-10-30 13:48:53 +01:00
antirez
16f9254761 first fix for append only mode 2009-10-30 01:11:29 +01:00
antirez
44b38ef432 Initial implementation of append-only mode. Loading still not implemented. 2009-10-30 01:04:17 +01:00
antirez
43e5ccdf57 EXPIRE behaviour changed a bit, a negative TTL or an EXPIREAT with unix time in the past will now delete the key. It seems saner to me than doing nothing. 2009-10-30 00:21:04 +01:00
antirez
802e837373 EXPIREAT implemented, will be useful for the append-only mode 2009-10-30 00:15:45 +01:00
antirez
fa4c0aba85 Fixed Issue 74 (ERR just returned on invalid password), now the error message is -ERR invalid password. 2009-10-29 11:43:40 +01:00
antirez
4aa701c11a Fixed issue 72 (SLAVEOF shutdowns redis-server on malformed reply) 2009-10-29 11:38:32 +01:00
antirez
6c9385e01d Fixed issue 77 (Incorrect time in log files) thanks to youwantalex 2009-10-29 11:31:55 +01:00
antirez
f72b934d14 Fixed Issue 76 (redis-server crashes when it can't connect to MASTER and client connects to SLAVE) 2009-10-29 11:30:43 +01:00
antirez
1807985baf ZREMRANGEBYSCORE implemented. Remove a range of elements with score between min and max 2009-10-29 11:10:16 +01:00
antirez
d13f767cf2 TODO changes and mostly theoretical minor skiplist change 2009-10-28 23:03:57 +01:00
antirez
3c41331e11 ZLEN renamed ZCARD for consistency with SCARD 2009-10-28 13:17:14 +01:00
antirez
0bc1b2f651 a fix for the solaris fix itself ;) 2009-10-27 18:39:47 +01:00
antirez
5043dff351 More Solaris fixes 2009-10-27 18:38:25 +01:00
antirez
d7f43c081a A lot of ZSETs tests implemented, and a bug fixed thanks to this new tests 2009-10-27 18:31:12 +01:00
antirez
6e333bbee2 ZSCORE implemented 2009-10-27 01:06:49 +01:00
antirez
dbbc7285ee fix for ZRANGEBYSCORE 2009-10-26 23:06:19 +01:00
antirez
50c55df529 ZRANGEBYSCORE implemented. Redis got range queries! 2009-10-26 23:02:56 +01:00
antirez
9d60e6e466 A trivial change makes the new implementation O(log(N)) instead of O(log(N))+O(M) when there are M repeated scores! 2009-10-26 20:47:23 +01:00
antirez
2b59cfdfe9 ZSET now saved on disk like any other type 2009-10-26 18:47:12 +01:00
antirez
a7866db6cc double serialization routines implemented 2009-10-26 18:26:04 +01:00
antirez
2161a96527 ZSETs random fixes. Now the implementation appears to be pretty stable 2009-10-26 17:57:24 +01:00
antirez
ad807e6fa3 another leak fixed. Can't find more for now, but still a bug in ZSETs to fix 2009-10-26 17:33:31 +01:00
antirez
599379ddda ZSETs memory leak #1 solved, another one missing 2009-10-26 17:02:05 +01:00
antirez
bb975144e4 Fix for skiplists backward link 2009-10-26 16:43:56 +01:00
antirez
325d1eb4a8 Merged Solaris patches provided by Alan Harder 2009-10-26 16:25:07 +01:00
antirez
e3870fab57 backward support to skiplists for ZREVRANGE, still broken, committing since I've to merge the Solaris patches 2009-10-26 16:14:49 +01:00
antirez
1b7106e7db ZREM implemented 2009-10-26 12:04:42 +01:00
antirez
f4d4c47f66 fix for ZADD in score update mode 2009-10-24 01:31:29 +02:00
antirez
e197b441a2 some work on ZADD against existing element (score update), still broken... 2009-10-24 01:27:18 +02:00
antirez
0aad7a1938 zrange now starts to work. zadd still does not support update and will crash or leak or b000mmmmm 2009-10-23 22:39:25 +02:00
antirez
cc81236105 zrange initial hack (not working for now) 2009-10-23 22:32:29 +02:00
antirez
913e9d6bca first skiplist fix, courtesy of valgrind 2009-10-23 22:16:50 +02:00
antirez
ace4ee541a zset symbols added to stack trace code. ZSets will simply crash at the moment 2009-10-23 21:43:09 +02:00
antirez
fd8ccf4419 more work on ZSETs and a new make target called 32bit to build i386 binaries on mac os x leopard 2009-10-23 21:24:01 +02:00
antirez
6b47e12ef8 initial skiplist implementation. Most memory checks removed and zmalloc() modified to fail with an error message and abort. Anyway Redis is not designed to recover from out of memory conditions. 2009-10-23 20:33:25 +02:00
antirez
cb7e07cc63 Fixed compilation in mac os x snow leopard when compiling a 32 bit binary. 2009-10-23 01:36:10 +02:00
antirez
1812e0246c version incremented to 1.050 to distinguish from 1.001 stable and next stable versions with minor fixes 2009-10-22 16:15:26 +02:00
antirez
2abb95a9a8 SRANDMEMBER added 2009-10-21 10:50:24 +02:00
antirez
f69f2cbafe Imporant bug leading to data corruption fixed (NOT affecting stable distribution), Tcl client lib MSET/MSETNX implementation fixed, Added new tests for MSET and MSETNX in test-redis.tcl 2009-10-20 11:39:20 +02:00
antirez
2ed22c8b29 MSET fixed, was not able to replace keys already set for a stupid bug 2009-10-17 22:02:59 +02:00
antirez
8d0490e7ec some dead code removed 2009-10-16 23:40:47 +02:00