@@ -86,15 +86,11 @@ enum IOop {
86
86
extent : usize ,
87
87
flush_number : u64 ,
88
88
gen_number : u64 ,
89
- source_downstairs : ClientId ,
90
- repair_downstairs : Vec < ClientId > ,
91
89
} ,
92
90
ExtentLiveRepair {
93
91
dependencies : Vec < JobId > , // Jobs that must finish before this
94
92
extent : usize ,
95
- source_downstairs : ClientId ,
96
93
source_repair_address : SocketAddr ,
97
- repair_downstairs : Vec < ClientId > ,
98
94
} ,
99
95
ExtentLiveReopen {
100
96
dependencies : Vec < JobId > , // Jobs that must finish before this
@@ -751,8 +747,6 @@ async fn proc_frame(
751
747
extent : extent_id,
752
748
flush_number,
753
749
gen_number,
754
- source_downstairs : ClientId :: new ( 0 ) , // Unused in the downstairs
755
- repair_downstairs : vec ! [ ] , // Unused in the downstairs
756
750
} ;
757
751
758
752
let d = ad. lock ( ) . await ;
@@ -765,8 +759,8 @@ async fn proc_frame(
765
759
job_id,
766
760
dependencies,
767
761
extent_id,
768
- source_client_id,
769
762
source_repair_address,
763
+ ..
770
764
} => {
771
765
if !is_message_valid (
772
766
upstairs_connection,
@@ -784,9 +778,8 @@ async fn proc_frame(
784
778
let new_repair = IOop :: ExtentLiveRepair {
785
779
dependencies,
786
780
extent : extent_id,
787
- source_downstairs : source_client_id ,
781
+
788
782
source_repair_address,
789
- repair_downstairs : vec ! [ ] ,
790
783
} ;
791
784
792
785
let d = ad. lock ( ) . await ;
@@ -2258,8 +2251,6 @@ impl Downstairs {
2258
2251
extent,
2259
2252
flush_number,
2260
2253
gen_number,
2261
- source_downstairs : _,
2262
- repair_downstairs : _,
2263
2254
} => {
2264
2255
let result = if !self . is_active ( job. upstairs_connection ) {
2265
2256
error ! ( self . log, "Upstairs inactive error" ) ;
@@ -2304,9 +2295,7 @@ impl Downstairs {
2304
2295
IOop :: ExtentLiveRepair {
2305
2296
dependencies,
2306
2297
extent,
2307
- source_downstairs : _,
2308
2298
source_repair_address,
2309
- repair_downstairs : _,
2310
2299
} => {
2311
2300
debug ! (
2312
2301
self . log,
@@ -3764,8 +3753,6 @@ mod test {
3764
3753
extent : 1 ,
3765
3754
flush_number : 1 ,
3766
3755
gen_number : 2 ,
3767
- source_downstairs : ClientId :: new ( 0 ) ,
3768
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
3769
3756
} ;
3770
3757
ds. add_work ( upstairs_connection, JobId ( 1001 ) , rio) . await ?;
3771
3758
@@ -3852,8 +3839,6 @@ mod test {
3852
3839
extent : 1 ,
3853
3840
flush_number : 1 ,
3854
3841
gen_number : gen,
3855
- source_downstairs : ClientId :: new ( 0 ) ,
3856
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
3857
3842
} ;
3858
3843
ds. add_work ( upstairs_connection, JobId ( 1001 ) , rio) . await ?;
3859
3844
@@ -4281,8 +4266,6 @@ mod test {
4281
4266
extent : eid as usize ,
4282
4267
flush_number : 3 ,
4283
4268
gen_number : gen,
4284
- source_downstairs : ClientId :: new ( 0 ) ,
4285
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
4286
4269
} ;
4287
4270
ds. add_work ( upstairs_connection, JobId ( 1001 ) , rio) . await ?;
4288
4271
@@ -4409,8 +4392,6 @@ mod test {
4409
4392
extent : eid_one as usize ,
4410
4393
flush_number : 6 ,
4411
4394
gen_number : gen,
4412
- source_downstairs : ClientId :: new ( 0 ) ,
4413
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
4414
4395
} ;
4415
4396
ds. add_work ( upstairs_connection, JobId ( 1002 ) , rio) . await ?;
4416
4397
@@ -4579,8 +4560,6 @@ mod test {
4579
4560
extent : eid,
4580
4561
flush_number : 1 ,
4581
4562
gen_number : 2 ,
4582
- source_downstairs : ClientId :: new ( 0 ) ,
4583
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
4584
4563
} ;
4585
4564
test_misc_work_through_work_queue ( JobId ( 1000 ) , ioop) ;
4586
4565
}
@@ -4596,9 +4575,7 @@ mod test {
4596
4575
let ioop = IOop :: ExtentLiveRepair {
4597
4576
dependencies : vec ! [ ] ,
4598
4577
extent : eid,
4599
- source_downstairs : ClientId :: new ( 0 ) ,
4600
4578
source_repair_address,
4601
- repair_downstairs : vec ! [ ClientId :: new( 1 ) ] ,
4602
4579
} ;
4603
4580
test_misc_work_through_work_queue ( JobId ( 1000 ) , ioop) ;
4604
4581
}
0 commit comments