]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: logs: use a single index to store the current range and index
authorWilly Tarreau <w@1wt.eu>
Wed, 20 Sep 2023 18:30:27 +0000 (20:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Sep 2023 19:38:33 +0000 (21:38 +0200)
commite00470378bcd55321d649f21cd5d4df3318e2774
treea0fe3f0efca5118c227024ca2a9e50e53a1e639c
parent49ddc0138cfeacde8701a029a0878ea3bfa2988f
MINOR: logs: use a single index to store the current range and index

By using a single long long to store both the current range and the
next index, we'll make it possible to perform atomic operations instead
of locking. Let's only regroup them for now under a new "curr_rg_idx".
The upper word is the range, the lower is the index.
include/haproxy/log-t.h
src/log.c