]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] stick_table: export the stick_table_key
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Jun 2010 15:39:30 +0000 (17:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Jun 2010 13:10:25 +0000 (15:10 +0200)
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.

include/proto/stick_table.h
src/stick_table.c

index e1a324d732835a697401bf27e43be7a73832aa43..87a550b86b9f122be0b33322a71200e81c2e1c51 100644 (file)
@@ -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);
index 017362f700a7645e33ed288213070ec443ee1850..9f7feddab23429432d6e0b2879243962f06ba30e 100644 (file)
@@ -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