Skip to content

Commit ad576a7

Browse files
committed
work
1 parent 3cf0563 commit ad576a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/discof/rpcserver/fd_rpc_history.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ fd_rpc_history_alloc_block(fd_rpc_history_t * hist, ulong slot) {
163163
return NULL;
164164
}
165165
blk->slot = slot;
166+
blk->file_offset = 0UL;
167+
blk->file_size = 0UL;
166168
memset( &blk->info, 0, sizeof(fd_replay_notif_msg_t) );
167169
blk->info.slot_exec.slot = slot;
168170
if( hist->first_slot == ULONG_MAX ) {
@@ -311,7 +313,7 @@ fd_rpc_history_save_shred(fd_rpc_history_t * hist, fd_shred_t * shred) {
311313
shred_map->head = shred->slot+1;
312314
shred_map->tail = shred->slot;
313315
}
314-
while( shred->slot > shred_map->tail + FD_SHRED_MAP_COL_CNT ) {
316+
while( shred->slot >= shred_map->tail + FD_SHRED_MAP_COL_CNT ) {
315317
FD_TEST( shred_map->tail < shred_map->head );
316318
fd_rpc_history_discard_column( shred_map, shred_pool, shred_map->tail++ );
317319
}

0 commit comments

Comments
 (0)