mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
WIP/MINOR: stktable: Don't check ref_cnt twice when a stksess is killed
This commit is contained in:
parent
7542437a0a
commit
0807ebacc1
1 changed files with 0 additions and 4 deletions
|
|
@ -136,10 +136,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 for the tree */
|
||||
if (MT_LIST_INLIST(&ts->upd)) {
|
||||
link = mt_list_lock_full(&ts->upd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue