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 da07b8c..485f6f1 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;