Skip to content

Commit

Permalink
asiegel/load-funk-wksp: fixing banks recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
asiegel-jt committed May 16, 2024
1 parent b1929c4 commit ebad601
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/app/fdctl/run/tiles/fd_replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,7 @@ read_snapshot( void * _ctx, char const * snapshotfile, char const * incremental
ctx->epoch_ctx = fd_exec_epoch_ctx_join( fd_exec_epoch_ctx_new( ctx->epoch_ctx_mem, 2000000UL ) );
fd_snapshot_load(incremental, ctx->slot_ctx, false, false, FD_SNAPSHOT_TYPE_INCREMENTAL );
} else {
/* This is called at the bottom of fd_snapshot_load */
fd_funk_start_write(ctx->acc_mgr->funk);
fd_hashes_load(ctx->slot_ctx);
fd_funk_end_write(ctx->acc_mgr->funk);
fd_runtime_recover_banks( ctx->slot_ctx, 0 );
}

} else {
Expand Down
7 changes: 3 additions & 4 deletions src/flamenco/runtime/fd_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ fd_runtime_checkpt( fd_capture_ctx_t * capture_ctx,
fd_exec_slot_ctx_t * slot_ctx,
ulong slot ) {
int is_checkpt_freq = capture_ctx != NULL && slot % capture_ctx->checkpt_freq == 0;
int is_abort_slot = slot == ULONG_MAX;
int is_abort_slot = slot == ULONG_MAX;
if( !is_checkpt_freq && !is_abort_slot ) {
return;
}
Expand Down Expand Up @@ -2281,7 +2281,7 @@ fd_runtime_block_eval_tpool(fd_exec_slot_ctx_t *slot_ctx,
if( err != 0 ) {
return err;
}

fd_funk_t * funk = slot_ctx->acc_mgr->funk;

long block_eval_time = -fd_log_wallclock();
Expand Down Expand Up @@ -3600,8 +3600,7 @@ FD_SCRATCH_SCOPE_BEGIN {
fd_funk_rec_key_t id = fd_runtime_epoch_bank_key();
fd_funk_rec_t const * rec = fd_funk_rec_query_global(funk, txn, &id);
if ( rec == NULL )
__asm__("int $3");
// FD_LOG_ERR(("failed to read banks record"));
FD_LOG_ERR(("failed to read banks record"));
void * val = fd_funk_val( rec, fd_funk_wksp(funk) );
fd_bincode_decode_ctx_t ctx;
ctx.data = val;
Expand Down

0 comments on commit ebad601

Please sign in to comment.