2086 Commits

Author SHA1 Message Date
Pieter Noordhuis
1f61aa253f More const's in redis-benchmark.c 2011-06-01 09:22:19 -07:00
antirez
8304f37085 ZREM tests 2011-05-31 20:30:54 +02:00
antirez
4b31796841 Variadic ZREM 2011-05-31 20:15:18 +02:00
antirez
86ee8a8f25 Fix for the variadic version of SREM. Regression test added. 2011-05-31 20:14:29 +02:00
antirez
6975baed26 disabled development test entry, tests moved in the right place 2011-05-31 18:49:12 +02:00
antirez
9ba2137ccf Variadic ZADD tests 2011-05-31 18:35:09 +02:00
antirez
33bc204b04 Variadic ZADD 2011-05-31 17:47:34 +02:00
Pieter Noordhuis
567194bf5d Make replication faster (biggest gain for small number of slaves) 2011-05-30 12:45:07 +02:00
antirez
00b2ab2c8d INFO now contains the time (in usecs) needed to fork() in order to persist. The info is available in the stats section of INFO. 2011-05-29 15:17:29 +02:00
antirez
f41e04b119 Merge remote branch 'pietern/unstable-replnonblock' into unstable 2011-05-29 14:26:01 +02:00
antirez
e257c6bd24 redis-cli: -i (interval) implemented, to wait the specified number of seconds (decimal digits are allowed) between commands. 2011-05-28 15:41:08 +02:00
antirez
23695bffd6 redis-cli: Use the repetiton prefix after a reconnection. 2011-05-28 15:25:48 +02:00
antirez
afe31333d6 redis-cli in REPL mode is now able to send the same command multiple times, prefixing the command with a number as in "10 ping" 2011-05-28 15:13:55 +02:00
antirez
152d26cfe6 redis-cli no longer aborts in repl-mode on error, and retries to reconncet with the server at every command issued if the state is not connected. Also the prompt shows the server we are connected to. 2011-05-28 15:04:12 +02:00
antirez
47e2130835 Merge branch 'unstable' 2011-05-25 12:33:25 +02:00
antirez
cfd32c162f Make sure error and status replies emitted by Lua scripts can never have more than a newline, otherwise it is a protocol violation and clients will desync. 2011-05-25 12:32:50 +02:00
antirez
a79ed5a118 Scripting tests added 2011-05-25 12:32:50 +02:00
antirez
92aa248ab7 Fix for wrong error level detection in redis.log() 2011-05-25 12:32:50 +02:00
antirez
6e6b7fcc10 All commands exported by Redis to Lua scripts are now inside the redis table. Implemented redis.log() function. 2011-05-25 12:32:50 +02:00
antirez
a044ec4e39 EVALSHA implemented 2011-05-25 12:32:49 +02:00
antirez
a073438a52 Now it is possible to return multi bulks of multi bulks from Lua, just returning tables of tables. The new conversion of the Null bulk and multi bulk type is the Lua false type. 2011-05-25 12:32:49 +02:00
antirez
98af129deb for performance reasons only set the debug hook if the time limit is enabled. 2011-05-25 12:32:49 +02:00
antirez
4f89275a16 Lua max exec time fixes: redisLog() to log the event moved before the lua_error() call that does a long jump so never returns. Aesthetic fixes in error message. 2011-05-25 12:32:49 +02:00
antirez
2ccb8cf33f call the Lua hook with minor frequency. It is already enough to call it every 100000 istructions for near millisecond precision. 2011-05-25 12:32:48 +02:00
antirez
6f6559e47e Lua scripts max execution time 2011-05-25 12:32:48 +02:00
antirez
15bbcf8e48 Lua memory usage in INFO 2011-05-25 12:32:48 +02:00
antirez
b37b6f8ce6 call lua_gc() for incremental garbage collection. Likely there is to tune this at some point. 2011-05-25 12:32:48 +02:00
antirez
218852a836 Lua scripting: Honor SELECT command in both ways 2011-05-25 12:32:47 +02:00
antirez
e4c113dc8a Fixed a problem in the script engine that crashed the server if the reply was not stored just int the static buffer of the client structure. 2011-05-25 12:32:47 +02:00
antirez
3993a9a702 Status replies converted in a special way like errors in the Lua <-> Redis conversion code. 2011-05-25 12:32:47 +02:00
antirez
421e21fa45 Scripting doc updated 2011-05-25 12:32:47 +02:00
antirez
7038584d95 Eval command table fixed to return the keys arguments of the command. We use zunionInterGetKeys() as it ZUNION/ZINTER have exactly the same semantic with a prefixed number of keys followed by key names. 2011-05-25 12:32:47 +02:00
antirez
eb1719a325 TODO updated 2011-05-25 12:32:46 +02:00
antirez
31d3c2fb22 Fixed nul bulk parsing in Redis protocol to Lua type convertion. Check for bad Lua types as arguements of the redis() Lua command. 2011-05-25 12:32:46 +02:00
antirez
c71072262d Scripting todo list updated 2011-05-25 12:32:46 +02:00
antirez
ce70f9aba7 Multi bulk to Lua table now working 2011-05-25 12:32:46 +02:00
antirez
3c836ffe5a Fixed arity detection of Redis command executed from Lua script. Error reporting from Lua fixed. More work on the Redis reply to lua conversion code. 2011-05-25 12:32:45 +02:00
antirez
a55dcc3808 full conversion from Lua return value to redis reply. Partial conversion from Redis reply to Lua type. 2011-05-25 12:32:45 +02:00
antirez
4fdcf75a85 pupulate the Lua global tables KEYS and ARGV before executing the script 2011-05-25 12:32:45 +02:00
antirez
d8cdc503e7 function to access to Redis command from Lua renamed from r() to redis() 2011-05-25 12:32:45 +02:00
antirez
4a56ea5b76 when creating not connected clients do not add them into the clients list, otherwise they will be subject to timeouts and other stuff 2011-05-25 12:32:44 +02:00
antirez
2039ac2211 Correctly glue the reply buffer. For now returned as it is to Lua, but will be converted into Lua native type later. 2011-05-25 12:32:44 +02:00
antirez
09e9cb316e Lua call of Redis command work in progress: sorry I have to go to the cinema to watch the Source Code movie 2011-05-25 12:32:44 +02:00
antirez
3dd67db52c Lua function creation on EVAL, basic Lua return type to Redis protocol convertion done. 2011-05-25 12:32:43 +02:00
antirez
e9d555d1e4 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
antirez
da9b2a206b Fix for Pub/Sub system, introduced in Redis 2.2.6 with the new copy-on-write safe iterator semantics. In the hope this is the last bug I introduced this way. 2011-05-25 12:32:15 +02:00
antirez
1ebc86e1d7 Comment typo fixed 2011-05-24 10:43:35 +02:00
antirez
fab8566cb1 Fixed typo in comment 2011-05-24 10:35:58 +02:00
Pieter Noordhuis
5bd18cc33e Configurable synchronous I/O timeout 2011-05-22 12:58:18 +02:00
Pieter Noordhuis
fedabe3991 Minor changes in non-blocking repl. connect 2011-05-22 12:51:09 +02:00