@@ -504,7 +504,6 @@ impl Downstairs {
504
504
extent,
505
505
flush_number,
506
506
gen_number,
507
- source_downstairs : _,
508
507
repair_downstairs,
509
508
} => {
510
509
cdt:: ds__close__start!( || (
@@ -1558,7 +1557,6 @@ impl Downstairs {
1558
1557
close_deps,
1559
1558
close_id,
1560
1559
gw_close_id,
1561
- source_downstairs,
1562
1560
repair_downstairs,
1563
1561
)
1564
1562
} ;
@@ -1743,22 +1741,19 @@ impl Downstairs {
1743
1741
ds_id
1744
1742
}
1745
1743
1746
- #[ allow( clippy:: too_many_arguments) ]
1747
1744
fn create_close_io (
1748
1745
& mut self ,
1749
1746
eid : usize ,
1750
1747
ds_id : JobId ,
1751
1748
dependencies : Vec < JobId > ,
1752
1749
gw_id : GuestWorkId ,
1753
- source : ClientId ,
1754
1750
repair : Vec < ClientId > ,
1755
1751
) -> DownstairsIO {
1756
1752
let close_ioop = IOop :: ExtentFlushClose {
1757
1753
dependencies,
1758
1754
extent : eid,
1759
1755
flush_number : self . next_flush_id ( ) ,
1760
1756
gen_number : self . cfg . generation ( ) ,
1761
- source_downstairs : source,
1762
1757
repair_downstairs : repair,
1763
1758
} ;
1764
1759
@@ -1774,23 +1769,20 @@ impl Downstairs {
1774
1769
}
1775
1770
}
1776
1771
1777
- #[ allow( clippy:: too_many_arguments) ]
1778
1772
fn create_and_enqueue_close_io (
1779
1773
& mut self ,
1780
1774
gw : & mut GuestWork ,
1781
1775
eid : u64 ,
1782
1776
deps : Vec < JobId > ,
1783
1777
close_id : JobId ,
1784
1778
gw_close_id : GuestWorkId ,
1785
- source : ClientId ,
1786
1779
repair : & [ ClientId ] ,
1787
1780
) {
1788
1781
let close_io = self . create_close_io (
1789
1782
eid as usize ,
1790
1783
close_id,
1791
1784
deps,
1792
1785
gw_close_id,
1793
- source,
1794
1786
repair. to_vec ( ) ,
1795
1787
) ;
1796
1788
@@ -8146,15 +8138,13 @@ pub(crate) mod test {
8146
8138
// incorrect flush number
8147
8139
ds. next_flush = 0x1DE ;
8148
8140
let next_flush = ds. next_flush ;
8149
- let source = ClientId :: new ( 1 ) ;
8150
8141
let repair = vec ! [ ClientId :: new( 0 ) , ClientId :: new( 2 ) ] ;
8151
8142
ds. create_and_enqueue_close_io (
8152
8143
& mut gw,
8153
8144
eid,
8154
8145
deps,
8155
8146
repair_ids. close_id ,
8156
8147
gw_close_id,
8157
- source,
8158
8148
& repair,
8159
8149
) ;
8160
8150
@@ -8167,7 +8157,6 @@ pub(crate) mod test {
8167
8157
extent,
8168
8158
flush_number,
8169
8159
gen_number,
8170
- source_downstairs,
8171
8160
repair_downstairs,
8172
8161
} => {
8173
8162
assert_eq ! (
@@ -8177,7 +8166,6 @@ pub(crate) mod test {
8177
8166
assert_eq ! ( * extent, eid as usize ) ;
8178
8167
assert_eq ! ( * flush_number, next_flush) ;
8179
8168
assert_eq ! ( * gen_number, ds. cfg. generation( ) ) ;
8180
- assert_eq ! ( * source_downstairs, source) ;
8181
8169
assert_eq ! ( * repair_downstairs, repair) ;
8182
8170
}
8183
8171
x => {
@@ -8383,7 +8371,6 @@ pub(crate) mod test {
8383
8371
deps,
8384
8372
extent_repair_ids. close_id ,
8385
8373
gw_close_id,
8386
- ClientId :: new ( 0 ) , // source downstairs
8387
8374
& [ ClientId :: new ( 1 ) ] , // repair downstairs
8388
8375
) ;
8389
8376
let gw_repair_id = gw. next_gw_id ( ) ;
0 commit comments