From: Thierry FOURNIER Date: Mon, 28 Sep 2015 23:41:25 +0000 (+0200) Subject: MINOR: lua: remove the run flag X-Git-Tag: v1.6-dev7~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bee90aeda1f118e0c5ff21c1ec86e7c360ac8225;p=thirdparty%2Fhaproxy.git MINOR: lua: remove the run flag Only the main execution function can set the run flag, because it is the last function before the execution time. This patch removes the flag set by another function. It will be used by the new lua timeout counter. --- diff --git a/src/hlua.c b/src/hlua.c index 12ffe75436..a7cbdc75be 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -5163,9 +5163,6 @@ static int hlua_sample_conv_wrapper(const struct arg *arg_p, struct sample *smp, /* At this point the execution is safe. */ RESET_SAFE_LJMP(stream->hlua.T); - - /* Set the currently running flag. */ - HLUA_SET_RUN(&stream->hlua); } /* Execute the function. */ @@ -5268,9 +5265,6 @@ static int hlua_sample_fetch_wrapper(const struct arg *arg_p, struct sample *smp /* At this point the execution is safe. */ RESET_SAFE_LJMP(stream->hlua.T); - - /* Set the currently running flag. */ - HLUA_SET_RUN(&stream->hlua); } /* Execute the function. */ @@ -5508,9 +5502,6 @@ static enum act_return hlua_action(struct act_rule *rule, struct proxy *px, /* We must initialize the execution timeouts. */ s->hlua.expire = tick_add_ifset(now_ms, hlua_timeout_session); - - /* Set the currently running flag. */ - HLUA_SET_RUN(&s->hlua); } /* Execute the function. */