]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC: fd: make it clear that some fields ordering must absolutely be respected
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jun 2020 17:58:37 +0000 (19:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Jun 2020 17:58:37 +0000 (19:58 +0200)
commitc208a54ab2aede84402d38758f855789b1a836d1
treed1a8b3dbc95ed07313c746d191ab24b10c805717
parent4f72ec851ccc24506cad03a09776422a057d61a7
DOC: fd: make it clear that some fields ordering must absolutely be respected

fd_set_running() and fd_takeover() may both use a double-word CAS on the
(running_mask, thread_mask) couple and as such they expect the fields to
be exactly arranged like this. It's critical not to reorder them, so add
a comment to avoid such a potential mistake later.
include/haproxy/fd-t.h