File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
service/src/pipelines/builders Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ impl Pipeline {
103
103
}
104
104
}
105
105
106
- pub fn reset_scopes ( & mut self , scopes : Vec < PlanScope > ) {
107
- self . scope_size = Arc :: new ( AtomicUsize :: new ( scopes . len ( ) ) ) ;
108
- self . plans_scope = scopes ;
106
+ pub fn reset_scopes ( & mut self , other : & Self ) {
107
+ self . scope_size = other . scope_size . clone ( ) ;
108
+ self . plans_scope = other . plans_scope . clone ( ) ;
109
109
}
110
110
111
111
pub fn is_empty ( & self ) -> bool {
Original file line number Diff line number Diff line change @@ -28,10 +28,7 @@ impl PipelineBuilder {
28
28
) ?;
29
29
30
30
// add profile
31
- let scopes = self . main_pipeline . get_scopes ( ) ;
32
- build_res
33
- . main_pipeline
34
- . reset_scopes ( scopes[ ..scopes. len ( ) - 1 ] . to_vec ( ) ) ;
31
+ build_res. main_pipeline . reset_scopes ( & self . main_pipeline ) ;
35
32
// add sharing data
36
33
self . join_state = build_res. builder_data . input_join_state ;
37
34
self . merge_into_probe_data_fields = build_res. builder_data . input_probe_schema ;
You can’t perform that action at this time.
0 commit comments