Skip to content

Commit 0347066

Browse files
committed
restore: snapwm txn_active zero
1 parent 5c18593 commit 0347066

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/discof/restore/fd_snapwm_tile_vinyl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ fd_snapwm_vinyl_txn_commit( fd_snapwm_tile_t * ctx,
355355
int commit_err = fd_vinyl_io_commit( io, FD_VINYL_IO_FLAG_BLOCKING );
356356
if( FD_UNLIKELY( commit_err ) ) FD_LOG_CRIT(( "fd_vinyl_io_commit failed (%i-%s)", commit_err, fd_vinyl_strerror( commit_err ) ));
357357

358+
/* Zero out txn_active before any return path. */
359+
ctx->vinyl.txn_active = 0;
360+
358361
/* Hint to kernel to start prefetching to speed up reads */
359362

360363
uchar * mmio = fd_vinyl_mmio ( io ); FD_TEST( mmio );
@@ -476,6 +479,7 @@ fd_snapwm_vinyl_txn_cancel( fd_snapwm_tile_t * ctx ) {
476479
fd_vinyl_io_t * io = ctx->vinyl.io_mm;
477480
fd_vinyl_io_rewind( io, ctx->vinyl.txn_seq );
478481
fd_vinyl_io_sync ( io, FD_VINYL_IO_FLAG_BLOCKING );
482+
ctx->vinyl.txn_active = 0;
479483
}
480484

481485
/* Fast writer ********************************************************/

0 commit comments

Comments
 (0)