]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: lua: remove the run flag
authorThierry FOURNIER <tfournier@arpalert.org>
Mon, 28 Sep 2015 23:41:25 +0000 (01:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2015 16:57:03 +0000 (18:57 +0200)
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.

src/hlua.c

index 12ffe75436cfd5c832b70ba4237e131b8e44145f..a7cbdc75beeb441a81a4f945f71dfd53223ea2da 100644 (file)
@@ -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. */