mirror of
https://github.com/fluencelabs/redis
synced 2025-04-21 16:42:13 +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
|
/* Set an hook in order to be able to stop the script execution if it
|
||||||
* is running for too much time. */
|
* is running for too much time. */
|
||||||
lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,10000);
|
lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,100000);
|
||||||
|
|
||||||
server.lua = lua;
|
server.lua = lua;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user