mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-02 10:12:03 +00:00
[MINOR] stick_table: export the stick_table_key
This one is huge and will be needed by other portions of code for various data lookups. Let's not have them allocate it in the stack.
This commit is contained in:
parent
c00cdc2eb0
commit
41883e2041
@ -28,6 +28,8 @@
|
||||
#define stktable_data_size(type) (sizeof(((union stktable_data*)0)->type))
|
||||
#define stktable_data_cast(ptr, type) ((union stktable_data*)(ptr))->type
|
||||
|
||||
extern struct stktable_key static_table_key;
|
||||
|
||||
struct stksess *stksess_new(struct stktable *t, struct stktable_key *key);
|
||||
void stksess_setkey(struct stktable *t, struct stksess *ts, struct stktable_key *key);
|
||||
void stksess_free(struct stktable *t, struct stksess *ts);
|
||||
|
@ -29,8 +29,8 @@
|
||||
#include <proto/task.h>
|
||||
|
||||
|
||||
/* static structure used to return a table key built from a pattern */
|
||||
static struct stktable_key static_table_key;
|
||||
/* structure used to return a table key built from a pattern */
|
||||
struct stktable_key static_table_key;
|
||||
|
||||
/*
|
||||
* Free an allocated sticky session <ts>, and decrease sticky sessions counter
|
||||
|
Loading…
Reference in New Issue
Block a user