Skip to content

Commit 5c2a280

Browse files
committed
logging
1 parent ac306b1 commit 5c2a280

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/discof/rpcserver/fd_rpcserv_tile.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ typedef union {
2626
ulong chunk0;
2727
ulong wmark;
2828
ulong mtu;
29+
ulong last_seq;
2930
};
3031
} fd_rpcserv_in_ctx_t;
3132

@@ -125,13 +126,18 @@ after_frag( fd_rpcserv_tile_ctx_t * ctx,
125126
ulong tsorig,
126127
ulong tspub,
127128
fd_stem_context_t * stem ) {
128-
(void)seq;
129129
(void)sig;
130130
(void)sz;
131131
(void)tsorig;
132132
(void)tspub;
133133
(void)stem;
134134

135+
ulong * last_seq = &ctx->in_links[ in_idx ].last_seq;
136+
if( seq != *last_seq + 1 ) {
137+
FD_LOG_NOTICE(( "seq jump from %lu to %lu on input %lu", *last_seq, seq, in_idx ));
138+
}
139+
*last_seq = seq;
140+
135141
uchar kind = ctx->in_kind[ in_idx ];
136142
if( FD_UNLIKELY( kind==IN_KIND_REPLAY_NOTIF ) ) {
137143
fd_rpc_replay_after_frag( ctx->ctx, &ctx->replay_notif_in_state );
@@ -223,6 +229,7 @@ unprivileged_init( fd_topo_t * topo,
223229
ctx->in_links[ in_idx ].chunk0 = fd_dcache_compact_chunk0( ctx->in_links[ in_idx ].mem, link->dcache );
224230
ctx->in_links[ in_idx ].wmark = fd_dcache_compact_wmark ( ctx->in_links[ in_idx ].mem, link->dcache, link->mtu );
225231
ctx->in_links[ in_idx ].mtu = link->mtu;
232+
ctx->in_links[ in_idx ].last_seq = 0;
226233
FD_TEST( fd_dcache_compact_is_safe( ctx->in_links[in_idx].mem, link->dcache, link->mtu, link->depth ) );
227234
}
228235

0 commit comments

Comments
 (0)