mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 04:56:10 +02:00
MINOR: stktable: Don't check ref_cnt twice when a stksess is killed
No reason to check the sticky session ref counter twice before locking the update list.
This commit is contained in:
parent
d714c6752c
commit
cb69c3bdec
@ -138,9 +138,6 @@ int __stksess_kill(struct stktable *t, struct stksess *ts)
|
||||
/* make sure we're no longer in the updates list */
|
||||
MT_LIST_DELETE(&ts->pend_updts);
|
||||
|
||||
/* ... and that nobody added us in between */
|
||||
if (HA_ATOMIC_LOAD(&ts->ref_cnt))
|
||||
return 0;
|
||||
|
||||
/* ... and that we didn't leave the update list */
|
||||
if (LIST_INLIST(&ts->upd)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user