]> git.kaiwu.me - haproxy.git/commitdiff
WIP/MINOR: stktable: Don't check ref_cnt twice when a stksess is killed
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Oct 2025 16:50:30 +0000 (18:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Oct 2025 14:38:53 +0000 (16:38 +0200)
src/stick_table.c

index 5e2d33b68a7cbee80c9a70038208105dfb6bbc88..23c959eef0d19d187da8fd89e223c2dfd9733be5 100644 (file)
@@ -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);