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 4695b5e..47ca9b1 100644
--- a/src/peers.c
+++ b/src/peers.c
@@ -3081,18 +3081,18 @@
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 @@
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,