]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stick-tables: export process_table_expire()
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 11:39:32 +0000 (12:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 11:39:32 +0000 (12:39 +0100)
This handler can take quite some time as it deletes a large number of
entries under a lock, let's export it so that it's immediately visible
in "show profiling".

src/stick_table.c

index da07b8c839dea8106f34c4e39be4c67fc73011f0..485f6f18411a69188b29a737d99211572c77e45a 100644 (file)
@@ -626,7 +626,7 @@ out_unlock:
  * Task processing function to trash expired sticky sessions. A pointer to the
  * task itself is returned since it never dies.
  */
-static struct task *process_table_expire(struct task *task, void *context, unsigned short state)
+struct task *process_table_expire(struct task *task, void *context, unsigned short state)
 {
        struct stktable *t = context;