]> git.saurik.com Git - redis.git/commitdiff
call the Lua hook with minor frequency. It is already enough to call it every 100000...
authorantirez <antirez@gmail.com>
Fri, 6 May 2011 15:25:19 +0000 (17:25 +0200)
committerantirez <antirez@gmail.com>
Wed, 25 May 2011 10:32:48 +0000 (12:32 +0200)
src/scripting.c

index b4297e602670a156f69865d5d11050668f68b161..7d22265146c1c4644cfb5388028a06e3219f84bc 100644 (file)
@@ -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;
 }