BUG/MINOR: srv-state: fix incorrect output of state file
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Jun 2016 12:51:40 +0000 (14:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Jun 2016 12:51:40 +0000 (14:51 +0200)
commita58c4359bb2d11fcaed27bb3ec1cabd9b16d4ccb
tree199cbcddaad3891614ecab02d5819215c6fda84b
parent1eea6d7ba89ad0ed0584478cfc806f3ed7856319
BUG/MINOR: srv-state: fix incorrect output of state file

Eric Webster reported that the state file wouldn't reload in 1.6.5
while it used to work in 1.6.4. The issue is that headers are now
missing from the output when a specific backend is dumped since
commit 4c1544d ("BUG/MEDIUM: stats: show servers state may show an
empty or incomplete result"). This patch fixes this by introducing
a dump state.

It must be backported to 1.6.
src/dumpstats.c