@@ -85,15 +85,11 @@ enum IOop {
85
85
extent : usize ,
86
86
flush_number : u64 ,
87
87
gen_number : u64 ,
88
- source_downstairs : ClientId ,
89
- repair_downstairs : Vec < ClientId > ,
90
88
} ,
91
89
ExtentLiveRepair {
92
90
dependencies : Vec < JobId > , // Jobs that must finish before this
93
91
extent : usize ,
94
- source_downstairs : ClientId ,
95
92
source_repair_address : SocketAddr ,
96
- repair_downstairs : Vec < ClientId > ,
97
93
} ,
98
94
ExtentLiveReopen {
99
95
dependencies : Vec < JobId > , // Jobs that must finish before this
@@ -750,8 +746,6 @@ async fn proc_frame(
750
746
extent : extent_id,
751
747
flush_number,
752
748
gen_number,
753
- source_downstairs : ClientId :: new ( 0 ) , // Unused in the downstairs
754
- repair_downstairs : vec ! [ ] , // Unused in the downstairs
755
749
} ;
756
750
757
751
let d = ad. lock ( ) . await ;
@@ -764,8 +758,8 @@ async fn proc_frame(
764
758
job_id,
765
759
dependencies,
766
760
extent_id,
767
- source_client_id,
768
761
source_repair_address,
762
+ ..
769
763
} => {
770
764
if !is_message_valid (
771
765
upstairs_connection,
@@ -783,9 +777,8 @@ async fn proc_frame(
783
777
let new_repair = IOop :: ExtentLiveRepair {
784
778
dependencies,
785
779
extent : extent_id,
786
- source_downstairs : source_client_id ,
780
+
787
781
source_repair_address,
788
- repair_downstairs : vec ! [ ] ,
789
782
} ;
790
783
791
784
let d = ad. lock ( ) . await ;
@@ -2275,8 +2268,6 @@ impl Downstairs {
2275
2268
extent,
2276
2269
flush_number,
2277
2270
gen_number,
2278
- source_downstairs : _,
2279
- repair_downstairs : _,
2280
2271
} => {
2281
2272
let result = if !self . is_active ( job. upstairs_connection ) {
2282
2273
error ! ( self . log, "Upstairs inactive error" ) ;
@@ -2321,9 +2312,7 @@ impl Downstairs {
2321
2312
IOop :: ExtentLiveRepair {
2322
2313
dependencies,
2323
2314
extent,
2324
- source_downstairs : _,
2325
2315
source_repair_address,
2326
- repair_downstairs : _,
2327
2316
} => {
2328
2317
debug ! (
2329
2318
self . log,
@@ -3715,8 +3704,6 @@ mod test {
3715
3704
extent : 1 ,
3716
3705
flush_number : 1 ,
3717
3706
gen_number : 2 ,
3718
- source_downstairs : ClientId :: new ( 0 ) ,
3719
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
3720
3707
} ;
3721
3708
ds. add_work ( upstairs_connection, JobId ( 1001 ) , rio) . await ?;
3722
3709
@@ -3803,8 +3790,6 @@ mod test {
3803
3790
extent : 1 ,
3804
3791
flush_number : 1 ,
3805
3792
gen_number : gen,
3806
- source_downstairs : ClientId :: new ( 0 ) ,
3807
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
3808
3793
} ;
3809
3794
ds. add_work ( upstairs_connection, JobId ( 1001 ) , rio) . await ?;
3810
3795
@@ -4232,8 +4217,6 @@ mod test {
4232
4217
extent : eid as usize ,
4233
4218
flush_number : 3 ,
4234
4219
gen_number : gen,
4235
- source_downstairs : ClientId :: new ( 0 ) ,
4236
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
4237
4220
} ;
4238
4221
ds. add_work ( upstairs_connection, JobId ( 1001 ) , rio) . await ?;
4239
4222
@@ -4360,8 +4343,6 @@ mod test {
4360
4343
extent : eid_one as usize ,
4361
4344
flush_number : 6 ,
4362
4345
gen_number : gen,
4363
- source_downstairs : ClientId :: new ( 0 ) ,
4364
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
4365
4346
} ;
4366
4347
ds. add_work ( upstairs_connection, JobId ( 1002 ) , rio) . await ?;
4367
4348
@@ -4530,8 +4511,6 @@ mod test {
4530
4511
extent : eid,
4531
4512
flush_number : 1 ,
4532
4513
gen_number : 2 ,
4533
- source_downstairs : ClientId :: new ( 0 ) ,
4534
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
4535
4514
} ;
4536
4515
test_misc_work_through_work_queue ( JobId ( 1000 ) , ioop) ;
4537
4516
}
@@ -4547,9 +4526,7 @@ mod test {
4547
4526
let ioop = IOop :: ExtentLiveRepair {
4548
4527
dependencies : vec ! [ ] ,
4549
4528
extent : eid,
4550
- source_downstairs : ClientId :: new ( 0 ) ,
4551
4529
source_repair_address,
4552
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
4553
4530
} ;
4554
4531
test_misc_work_through_work_queue ( JobId ( 1000 ) , ioop) ;
4555
4532
}
0 commit comments