@@ -420,19 +420,19 @@ impl SequenceState {
420420 } ,
421421 ) ;
422422
423- // Fetch and store the right-most unhashed tile, if configured.
424- if let Some ( path_elem) = L :: Pending :: UNHASHED_TILE_PATH {
425- let unhashed_tile = level0_tile. with_data_path ( path_elem) ;
426- let unhashed_tile_bytes = object
427- . fetch ( & unhashed_tile . path ( ) )
423+ // Fetch and store the right-most auxiliary tile, if configured.
424+ if let Some ( path_elem) = L :: Pending :: AUX_TILE_PATH {
425+ let aux_tile = level0_tile. with_data_path ( path_elem) ;
426+ let aux_tile_bytes = object
427+ . fetch ( & aux_tile . path ( ) )
428428 . await ?
429- . ok_or ( anyhow ! ( "no unhashed tile in object storage" ) ) ?;
429+ . ok_or ( anyhow ! ( "no auxiliary tile in object storage" ) ) ?;
430430
431431 edge_tiles. insert (
432432 UNHASHED_TILE_LEVEL_KEY ,
433433 TileWithBytes {
434- tile : unhashed_tile ,
435- b : unhashed_tile_bytes ,
434+ tile : aux_tile ,
435+ b : aux_tile_bytes ,
436436 } ,
437437 ) ;
438438 }
@@ -636,12 +636,12 @@ async fn sequence_entries<L: LogEntry>(
636636 }
637637 }
638638
639- // Load the current partial unhashed tile, if configured.
640- let mut unhashed_tile = Vec :: new ( ) ;
641- if L :: Pending :: UNHASHED_TILE_PATH . is_some ( ) {
639+ // Load the current partial auxiliary tile, if configured.
640+ let mut aux_tile = Vec :: new ( ) ;
641+ if L :: Pending :: AUX_TILE_PATH . is_some ( ) {
642642 if let Some ( t) = edge_tiles. get ( & UNHASHED_TILE_LEVEL_KEY ) {
643643 if t. tile . width ( ) < TlogTile :: FULL_WIDTH {
644- unhashed_tile . clone_from ( & t. b ) ;
644+ aux_tile . clone_from ( & t. b ) ;
645645 }
646646 }
647647 }
@@ -657,9 +657,9 @@ async fn sequence_entries<L: LogEntry>(
657657 cache_metadata. push ( ( entry. lookup_key ( ) , metadata) ) ;
658658 sequenced_metadata. push ( ( sender, metadata) ) ;
659659
660- // Write to the unhashed tile, if configured.
661- if L :: Pending :: UNHASHED_TILE_PATH . is_some ( ) {
662- unhashed_tile . extend ( entry. unhashed_entry ( ) ) ;
660+ // Write to the auxiliary tile, if configured.
661+ if L :: Pending :: AUX_TILE_PATH . is_some ( ) {
662+ aux_tile . extend ( entry. aux_entry ( ) ) ;
663663 }
664664
665665 let sequenced_entry = L :: new ( entry, metadata) ;
@@ -702,7 +702,7 @@ async fn sequence_entries<L: LogEntry>(
702702 & mut edge_tiles,
703703 & mut tile_uploads,
704704 std:: mem:: take ( & mut data_tile) ,
705- std:: mem:: take ( & mut unhashed_tile ) ,
705+ std:: mem:: take ( & mut aux_tile ) ,
706706 ) ;
707707 }
708708 }
@@ -718,7 +718,7 @@ async fn sequence_entries<L: LogEntry>(
718718 & mut edge_tiles,
719719 & mut tile_uploads,
720720 std:: mem:: take ( & mut data_tile) ,
721- std:: mem:: take ( & mut unhashed_tile ) ,
721+ std:: mem:: take ( & mut aux_tile ) ,
722722 ) ;
723723 }
724724
@@ -870,14 +870,14 @@ async fn sequence_entries<L: LogEntry>(
870870 Ok ( ( ) )
871871}
872872
873- // Stage a data tile, and if configured an unhashed tile.
873+ // Stage a data tile, and if configured an auxiliary tile.
874874// This is used as a helper function for [`sequence_entries`].
875875fn stage_data_tile < L : LogEntry > (
876876 n : u64 ,
877877 edge_tiles : & mut HashMap < u8 , TileWithBytes > ,
878878 tile_uploads : & mut Vec < UploadAction > ,
879879 data_tile : Vec < u8 > ,
880- unhashed_tile : Vec < u8 > ,
880+ aux_tile : Vec < u8 > ,
881881) {
882882 let tile = TlogTile :: from_index ( tlog_tiles:: stored_hash_index ( 0 , n - 1 ) )
883883 . with_data_path ( L :: Pending :: DATA_TILE_PATH ) ;
@@ -893,19 +893,19 @@ fn stage_data_tile<L: LogEntry>(
893893 data : data_tile,
894894 opts : OPTS_DATA_TILE . clone ( ) ,
895895 } ) ;
896- if let Some ( path_elem) = L :: Pending :: UNHASHED_TILE_PATH {
896+ if let Some ( path_elem) = L :: Pending :: AUX_TILE_PATH {
897897 let tile =
898898 TlogTile :: from_index ( tlog_tiles:: stored_hash_index ( 0 , n - 1 ) ) . with_data_path ( path_elem) ;
899899 edge_tiles. insert (
900900 UNHASHED_TILE_LEVEL_KEY ,
901901 TileWithBytes {
902902 tile,
903- b : unhashed_tile . clone ( ) ,
903+ b : aux_tile . clone ( ) ,
904904 } ,
905905 ) ;
906906 tile_uploads. push ( UploadAction {
907907 key : tile. path ( ) ,
908- data : unhashed_tile ,
908+ data : aux_tile ,
909909 opts : OPTS_DATA_TILE . clone ( ) ,
910910 } ) ;
911911 }
0 commit comments