antirez
|
da386cdf33
|
for performance reasons only set the debug hook if the time limit is enabled.
|
2011-05-25 12:32:49 +02:00 |
|
antirez
|
87c219243c
|
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
|
bcc72bc381
|
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
|
eeffcf380f
|
Lua scripts max execution time
|
2011-05-25 12:32:48 +02:00 |
|
antirez
|
40531be0e3
|
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
|
c2a7dd85ae
|
Lua scripting: Honor SELECT command in both ways
|
2011-05-25 12:32:47 +02:00 |
|
antirez
|
09ab5591fa
|
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
|
0d916763af
|
Status replies converted in a special way like errors in the Lua <-> Redis conversion code.
|
2011-05-25 12:32:47 +02:00 |
|
antirez
|
379789cc52
|
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
|
10a6da7af4
|
Multi bulk to Lua table now working
|
2011-05-25 12:32:46 +02:00 |
|
antirez
|
3791000f15
|
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
|
532e0f5ded
|
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
|
4ae5b5e163
|
pupulate the Lua global tables KEYS and ARGV before executing the script
|
2011-05-25 12:32:45 +02:00 |
|
antirez
|
00b7541b21
|
function to access to Redis command from Lua renamed from r() to redis()
|
2011-05-25 12:32:45 +02:00 |
|
antirez
|
7156f43c04
|
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
|
0f1d64ca57
|
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
|
7585836e6e
|
Lua function creation on EVAL, basic Lua return type to Redis protocol convertion done.
|
2011-05-25 12:32:43 +02:00 |
|