File tree Expand file tree Collapse file tree
storage/src/journal/segmented Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1364,12 +1364,13 @@ mod tests {
13641364 page_cache : CacheRef :: from_pooler ( & context, PAGE_SIZE , PAGE_CACHE_SIZE ) ,
13651365 write_buffer : NZUsize ! ( 1024 ) ,
13661366 } ;
1367+
1368+ // Leave one byte in the first page so the trailing bytes below cross the page
1369+ // boundary and repair must issue a physical resize.
13671370 let section = 1u64 ;
13681371 let item = [ 10u8 ; 1021 ] ;
13691372 let item_record_size =
13701373 UInt ( item. encode_size ( ) as u32 ) . encode_size ( ) + item. encode_size ( ) ;
1371- // Leave one byte in the first page so the trailing bytes below cross the page
1372- // boundary and repair must issue a physical resize.
13731374 assert_eq ! ( item_record_size, PAGE_SIZE . get( ) as usize - 1 ) ;
13741375
13751376 let mut journal = Journal :: init ( context. child ( "first" ) , cfg. clone ( ) )
You can’t perform that action at this time.
0 commit comments