@@ -611,12 +611,8 @@ impl Coordinator {
611611 & read_holds_owned
612612 } ;
613613
614- let ( dataflow_as_of, storage_as_of, until) = self . select_timestamps (
615- id_bundle,
616- refresh_schedule. as_ref ( ) ,
617- read_holds,
618- replacement_target,
619- ) ?;
614+ let ( dataflow_as_of, storage_as_of, until) =
615+ self . select_timestamps ( id_bundle, refresh_schedule. as_ref ( ) , read_holds) ?;
620616
621617 tracing:: info!(
622618 dataflow_as_of = ?dataflow_as_of,
@@ -781,7 +777,6 @@ impl Coordinator {
781777 id_bundle : CollectionIdBundle ,
782778 refresh_schedule : Option < & RefreshSchedule > ,
783779 read_holds : & ReadHolds < mz_repr:: Timestamp > ,
784- replacement_target : Option < CatalogItemId > ,
785780 ) -> Result <
786781 (
787782 Antichain < mz_repr:: Timestamp > ,
@@ -845,24 +840,6 @@ impl Coordinator {
845840 . and_then ( |r| r. try_step_forward ( ) ) ;
846841 let until = Antichain :: from_iter ( until_ts) ;
847842
848- // If this is a replacement MV, ensure that `storage_as_of` > the `since` of the target
849- // storage collection. The storage controller requires the `since` of a storage collection
850- // to always be greater than the `since`s of the collections it depends on.
851- if let Some ( target_id) = replacement_target {
852- let target_gid = self . catalog ( ) . get_entry ( & target_id) . latest_global_id ( ) ;
853- let frontiers = self
854- . controller
855- . storage_collections
856- . collection_frontiers ( target_gid)
857- . expect ( "replacement target exists" ) ;
858- let lower_bound = frontiers
859- . read_capabilities
860- . iter ( )
861- . map ( |t| t. step_forward ( ) )
862- . collect ( ) ;
863- storage_as_of. join_assign ( & lower_bound) ;
864- }
865-
866843 Ok ( ( dataflow_as_of, storage_as_of, until) )
867844 }
868845
0 commit comments