mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
BUG/MINOR: stick-table: fix build with DEBUG_THREAD
Compilation is broken with DEBUG_THREAD since the following patch 76642223f014f89cd1f374291798499f4fba7dde MEDIUM: stick-table: switch the table lock to rwlock Fix this by updating a legacy HA_SPIN_INIT() to HA_RWLOCK_INIT(). No backport needed unless the mentionned patch is backported.
This commit is contained in:
parent
cbdb528a76
commit
3e0648837c
@ -699,7 +699,7 @@ int stktable_init(struct stktable *t)
|
||||
t->keys = EB_ROOT_UNIQUE;
|
||||
memset(&t->exps, 0, sizeof(t->exps));
|
||||
t->updates = EB_ROOT_UNIQUE;
|
||||
HA_SPIN_INIT(&t->lock);
|
||||
HA_RWLOCK_INIT(&t->lock);
|
||||
|
||||
t->pool = create_pool("sticktables", sizeof(struct stksess) + round_ptr_size(t->data_size) + t->key_size, MEM_F_SHARED);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user