mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Don't timeout scripts if the instance is a slave.
This commit is contained in:
parent
e5abf6ef19
commit
e089e61019
@ -606,7 +606,7 @@ void evalGenericCommand(redisClient *c, int evalsha) {
|
||||
* is running for too much time.
|
||||
* We set the hook only if the time limit is enabled as the hook will
|
||||
* make the Lua script execution slower. */
|
||||
if (server.lua_time_limit > 0) {
|
||||
if (server.lua_time_limit > 0 && server.masterhost != NULL) {
|
||||
lua_sethook(lua,luaMaskCountHook,LUA_MASKCOUNT,100000);
|
||||
server.lua_time_start = ustime()/1000;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user