]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/CLEANUP: CLI: report the proper field states in "show sess"
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Jan 2016 14:27:17 +0000 (15:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Jan 2016 19:22:36 +0000 (20:22 +0100)
Commit 16f649c ("REORG: polling: rename "fd_spec" to "fd_cache"")
missed the server-facing connection during the rename, so the old
names are still in used and add a bit of confusion during the
debugging.

This should be backported to 1.6 and 1.5.

src/dumpstats.c

index 2cfaded6f956666a32c881a048168b9925b5a999..cc380382209de66fe02cbea2663659490acde67a 100644 (file)
@@ -5591,7 +5591,7 @@ static int stats_dump_full_sess_to_buffer(struct stream_interface *si, struct st
                                      obj_base_ptr(conn->target));
 
                        chunk_appendf(&trash,
-                                     "      flags=0x%08x fd=%d fd_spec_e=%02x fd_spec_p=%d updt=%d\n",
+                                     "      flags=0x%08x fd=%d fd.state=%02x fd.cache=%d updt=%d\n",
                                      conn->flags,
                                      conn->t.sock.fd,
                                      conn->t.sock.fd >= 0 ? fdtab[conn->t.sock.fd].state : 0,