From: Frédéric Lécaille Date: Wed, 6 Nov 2019 09:41:03 +0000 (+0100) Subject: MINOR: peers: Alway show the table info for disconnected peers. X-Git-Tag: v2.1.0~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=470502b420d8c0234f155826029f42d51d96d0e4;p=thirdparty%2Fhaproxy.git MINOR: peers: Alway show the table info for disconnected peers. This patch enable us to dump the stick-table information of remote or local peers without already opened peer session. This may be the case also for the local peer during synchronizations with an old processus (reload). --- diff --git a/src/peers.c b/src/peers.c index 4695b5ee06..47ca9b1bb9 100644 --- a/src/peers.c +++ b/src/peers.c @@ -3081,18 +3081,18 @@ static int peers_dump_peer(struct buffer *msg, struct stream_interface *si, stru appctx = peer->appctx; if (!appctx) - goto end; + goto table_info; chunk_appendf(&trash, " appctx:%p st0=%d st1=%d task_calls=%u", appctx, appctx->st0, appctx->st1, appctx->t ? appctx->t->calls : 0); peer_si = peer->appctx->owner; if (!peer_si) - goto end; + goto table_info; peer_s = si_strm(peer_si); if (!peer_s) - goto end; + goto table_info; chunk_appendf(&trash, " state=%s", si_state_str(si_opposite(peer_si)->state)); @@ -3120,6 +3120,7 @@ static int peers_dump_peer(struct buffer *msg, struct stream_interface *si, stru break; } + table_info: if (peer->remote_table) chunk_appendf(&trash, "\n remote_table:%p id=%s local_id=%d remote_id=%d", peer->remote_table,