@@ -625,7 +625,7 @@ impl Session {
625625 & self . change_set ,
626626 & self . snapshot_id ,
627627 path,
628- None ,
628+ ManifestExtents :: ALL ,
629629 )
630630 . await
631631 }
@@ -867,15 +867,15 @@ impl Session {
867867 & self . change_set ,
868868 & self . snapshot_id ,
869869 node. clone ( ) ,
870- None ,
870+ ManifestExtents :: ALL ,
871871 )
872872 . await
873873 . map_ok ( |( _path, chunk_info) | chunk_info. coord ) ;
874874
875875 let res = try_stream ! {
876876 let new_chunks = stream:: iter(
877877 self . change_set
878- . new_array_chunk_iterator( & node. id, array_path, None )
878+ . new_array_chunk_iterator( & node. id, array_path, ManifestExtents :: ALL )
879879 . map( |chunk_info| Ok :: <ChunkIndices , SessionError >( chunk_info. coord) ) ,
880880 ) ;
881881
@@ -1200,7 +1200,7 @@ async fn updated_chunk_iterator<'a>(
12001200 change_set,
12011201 snapshot_id,
12021202 node,
1203- None ,
1203+ ManifestExtents :: ALL ,
12041204 )
12051205 . await )
12061206 } ) ;
@@ -1212,7 +1212,7 @@ async fn updated_node_chunks_iterator<'a>(
12121212 change_set : & ' a ChangeSet ,
12131213 snapshot_id : & ' a SnapshotId ,
12141214 node : NodeSnapshot ,
1215- extent : Option < ManifestExtents > ,
1215+ extent : ManifestExtents ,
12161216) -> impl Stream < Item = SessionResult < ( Path , ChunkInfo ) > > + ' a {
12171217 // This iterator should yield chunks for existing arrays + any updates.
12181218 // we check for deletion here in the case that `path` exists in the snapshot,
@@ -1242,7 +1242,7 @@ async fn node_chunk_iterator<'a>(
12421242 change_set : & ' a ChangeSet ,
12431243 snapshot_id : & ' a SnapshotId ,
12441244 path : & Path ,
1245- extent : Option < ManifestExtents > ,
1245+ extent : ManifestExtents ,
12461246) -> impl Stream < Item = SessionResult < ChunkInfo > > + ' a + use < ' a > {
12471247 match get_node ( asset_manager, change_set, snapshot_id, path) . await {
12481248 Ok ( node) => futures:: future:: Either :: Left (
@@ -1265,7 +1265,7 @@ async fn verified_node_chunk_iterator<'a>(
12651265 snapshot_id : & ' a SnapshotId ,
12661266 change_set : & ' a ChangeSet ,
12671267 node : NodeSnapshot ,
1268- extent : Option < ManifestExtents > ,
1268+ extent : ManifestExtents ,
12691269) -> impl Stream < Item = SessionResult < ChunkInfo > > + ' a {
12701270 match node. node_data {
12711271 NodeData :: Group => futures:: future:: Either :: Left ( futures:: stream:: empty ( ) ) ,
@@ -1298,9 +1298,10 @@ async fn verified_node_chunk_iterator<'a>(
12981298 futures:: stream:: iter ( new_chunks) . chain (
12991299 futures:: stream:: iter ( manifests)
13001300 . filter ( move |manifest_ref| {
1301- futures:: future:: ready ( extent. as_ref ( ) . is_none_or ( |e| {
1302- e. overlap_with ( & manifest_ref. extents ) != Overlap :: None
1303- } ) )
1301+ futures:: future:: ready (
1302+ extent. overlap_with ( & manifest_ref. extents )
1303+ != Overlap :: None ,
1304+ )
13041305 } )
13051306 . then ( move |manifest_ref| {
13061307 let new_chunk_indices = new_chunk_indices. clone ( ) ;
@@ -1323,11 +1324,7 @@ async fn verified_node_chunk_iterator<'a>(
13231324 !new_chunk_indices. contains ( coord)
13241325 // If the manifest we are parsing partially overlaps with `extent`,
13251326 // we need to filter all coordinates
1326- && extent_c2. as_ref ( ) . is_none_or (
1327- move |e| {
1328- e. contains ( coord. 0 . as_slice ( ) )
1329- } ,
1330- )
1327+ && extent_c2. contains ( coord. 0 . as_slice ( ) )
13311328 } )
13321329 . map_ok ( move |( coord, payload) | ChunkInfo {
13331330 node : node_id_c2. clone ( ) ,
@@ -1603,7 +1600,7 @@ impl<'a> FlushProcess<'a> {
16031600 self . change_set ,
16041601 self . parent_id ,
16051602 node. clone ( ) ,
1606- Some ( extent. clone ( ) ) ,
1603+ extent. clone ( ) ,
16071604 )
16081605 . await
16091606 . map_ok ( |( _path, chunk_info) | chunk_info) ;
@@ -1656,11 +1653,7 @@ impl<'a> FlushProcess<'a> {
16561653 if self . change_set . array_manifest ( node_id, extent) . is_some ( ) {
16571654 let chunks = stream:: iter (
16581655 self . change_set
1659- . new_array_chunk_iterator (
1660- node_id,
1661- node_path,
1662- Some ( extent. clone ( ) ) ,
1663- )
1656+ . new_array_chunk_iterator ( node_id, node_path, extent. clone ( ) )
16641657 . map ( Ok ) ,
16651658 ) ;
16661659 #[ allow( clippy:: expect_used) ]
0 commit comments