[MEDIUM] config: automatically find unused IDs for proxies, servers and listeners
authorWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 21:04:08 +0000 (23:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 21:04:08 +0000 (23:04 +0200)
commit53fb4ae261b6e0e33e618f5cabbacc1657c19cc5
tree3fe60c8cfd3a4d02fe5aebc09a68a022b757bea6
parent482b00d1b46337f2f22de47dca5032e31e88976f
[MEDIUM] config: automatically find unused IDs for proxies, servers and listeners

Until now it was required that every custom ID was above 1000 in order to
avoid conflicts. Now we have the list of all assigned IDs and can automatically
pick the first unused one. This means that it is perfectly possible to interleave
automatic IDs with persistent IDs and the parser will automatically allocate
unused values starting with 1.
doc/configuration.txt
include/types/protocols.h
include/types/proxy.h
include/types/server.h
src/cfgparse.c
src/proxy.c