]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dynbuf: provide a b_dequeue() function to detach a bw from the queue
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Apr 2024 16:31:14 +0000 (18:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 May 2024 15:18:13 +0000 (17:18 +0200)
commitf70bd5fad18539145bb0a91a5934a5a21cfcc446
treec1ca17e9319a321e0c0247fb86ea085dfb33498a
parent53461e4d940c488a62fbe44687de503abf61d105
MINOR: dynbuf: provide a b_dequeue() function to detach a bw from the queue

Now that we need to keep the bitmap in sync with the list heads, we don't
want tasks to leave just doing a LIST_DEL_INIT() without updating the map.
Let's provide a b_dequeue() function for that purpose. The function detects
when it's going to remove the last element and figures the queue number
based on the pointer since it points to the root. It's not used yet.
include/haproxy/dynbuf.h