]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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>
Thu, 30 Oct 2025 14:09:40 +0000 (15:09 +0100)
No reason to check the sticky session ref counter twice before locking the
update list.

src/stick_table.c

index 2094e474d78b9a721a0d81008d50e481d1569057..013d77ef643e2c3bc305f239d79a2e8de570d445 100644 (file)
@@ -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)) {