mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUG/MINOR: stick-table: fix build with DEBUG_THREAD
Compilation is broken with DEBUG_THREAD since the following patch
76642223f0
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue