Skip to content

Commit b675be1

Browse files
riptlripatel-fd
authored andcommitted
accdb: add vinyl bench-query-rand
- Adds a async/pipelined random key-value read benchmark - Fixes init of vinyl_data allocator
1 parent 8f7e31d commit b675be1

File tree

3 files changed

+463
-9
lines changed

3 files changed

+463
-9
lines changed

src/app/firedancer-dev/commands/snapshot_load.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,11 @@ snapshot_load_cmd_fn( args_t * args,
855855
FD_TEST( vinyl_status==FD_CNC_SIGNAL_RUN );
856856
FD_LOG_NOTICE(( "Vinyl server running" ));
857857
for(;;) {
858-
ulong cnc_signal = fd_cnc_wait( cnc, vinyl_status, LONG_MAX, NULL );
858+
vinyl_status = fd_cnc_wait( cnc, vinyl_status, LONG_MAX, NULL );
859859
char cnc_signal_cstr[ FD_VINYL_CNC_SIGNAL_CSTR_BUF_MAX ];
860-
fd_vinyl_cnc_signal_cstr( cnc_signal, cnc_signal_cstr );
860+
fd_vinyl_cnc_signal_cstr( vinyl_status, cnc_signal_cstr );
861861
FD_LOG_NOTICE(( "Vinyl CNC signal %s", cnc_signal_cstr ));
862-
if( cnc_signal==FD_CNC_SIGNAL_BOOT ) break;
862+
if( vinyl_status==FD_CNC_SIGNAL_BOOT ) break;
863863
}
864864
FD_LOG_NOTICE(( "Vinyl server shut down" ));
865865
fd_cnc_leave( cnc );

src/discof/vinyl/fd_vinyl_tile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ vinyl_init_fast( fd_vinyl_tile_ctx_t * ctx,
118118
FD_TEST( fd_vinyl_meta_join( vinyl->meta, _meta, _ele ) );
119119

120120
FD_TEST( fd_vinyl_data_init( vinyl->data, _obj, obj_footprint, obj_laddr0 ) );
121+
fd_vinyl_data_reset( NULL, 0UL, 0UL, 0, vinyl->data );
121122

122123
vinyl->cnc_footprint = cnc_footprint;
123124
vinyl->meta_footprint = meta_footprint;

0 commit comments

Comments
 (0)