]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: rename possibly confusing struct field "tracked"
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Oct 2011 13:35:33 +0000 (15:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Oct 2011 13:35:33 +0000 (15:35 +0200)
commit44267700139fe7fb28f68220d9ee8cc436ffe3e3
treede8b2006f2f29bf54b9318fea90b0ccf3add9877
parentd66bf96d5b0eff5960aa1c00bccd2e3893a3c731
CLEANUP: rename possibly confusing struct field "tracked"

When reading the code, the "tracked" member of a server makes one
think the server is tracked while it's the opposite, it's a pointer
to the server being tracked. This is particularly true in constructs
such as :

if (srv->tracked) {

Since it's the second time I get caught misunderstanding it, let's
rename it to "track" to avoid the confusion.
include/types/server.h
src/cfgparse.c
src/checks.c
src/dumpstats.c
src/queue.c