mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
call the Lua hook with minor frequency. It is already enough to call it every 100000 istructions for near millisecond precision.
This commit is contained in:
parent
eeffcf380f
commit
bcc72bc381
@ -227,7 +227,7 @@ void scriptingInit(void) {
|
||||
|
||||
/* Set an hook in order to be able to stop the script execution if it
|
||||
* is running for too much time. */
|
||||
lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,10000);
|
||||
lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,100000);
|
||||
|
||||
server.lua = lua;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user