Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e089e610
Commit
e089e610
authored
Oct 25, 2011
by
antirez
Browse files
Don't timeout scripts if the instance is a slave.
parent
e5abf6ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
e089e610
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment