Commit Graph

275 Commits

Author SHA1 Message Date
antirez
71c2b467b0 debug loadaof implemented in order to add more consistency tests in test-redis.tcl 2009-12-15 11:15:47 -05:00
antirez
e054afda90 Added a new test able to stress a lot the snapshotting engine 2009-12-15 10:55:13 -05:00
antirez
ed10f40b15 Unified handling of empty queries with normal queries. 2009-12-15 09:33:29 -05:00
antirez
7c49733ce3 Fixed some subtle bug in the command processing code almost impossible to spot in the real world, thanks to gcov 2009-12-15 09:14:40 -05:00
antirez
0d36ded040 Fixed issue #121 2009-12-15 04:06:10 -05:00
antirez
49b99ab43e Changed the reply of BGSAVE and BGREWRITEAOF from +OK to a more meaningful message that makes the user aware of an operation that just started and is not yet finished. 2009-12-13 16:52:43 +01:00
antirez
179b395244 Set the master->slave logical client as authenticated on creation, so that if the slave requires a password replication works anyway 2009-12-13 15:09:46 +01:00
antirez
b3fad521cc bgrewriteaof_in_progress added to INFO 2009-12-12 22:41:10 +01:00
antirez
b32627cdc1 some change to redis-sha1.rb utility to make it more robust against non-meaningful changes in the dataset 2009-12-11 18:45:25 +01:00
antirez
454d4e43b5 a bit more verbose -ERR wrong number o arguments error, now gives info about the command name causing the error 2009-12-10 19:35:09 +01:00
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