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:
Amaury Denoyelle 2022-10-12 16:47:59 +02:00
parent cbdb528a76
commit 3e0648837c

View File

@ -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);