Skip to content

Commit 1e6e73a

Browse files
committed
Remove ExtentFlushClose::source_downstairs
1 parent 796dce5 commit 1e6e73a

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

upstairs/src/downstairs.rs

-13
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,6 @@ impl Downstairs {
504504
extent,
505505
flush_number,
506506
gen_number,
507-
source_downstairs: _,
508507
repair_downstairs,
509508
} => {
510509
cdt::ds__close__start!(|| (
@@ -1558,7 +1557,6 @@ impl Downstairs {
15581557
close_deps,
15591558
close_id,
15601559
gw_close_id,
1561-
source_downstairs,
15621560
repair_downstairs,
15631561
)
15641562
};
@@ -1743,22 +1741,19 @@ impl Downstairs {
17431741
ds_id
17441742
}
17451743

1746-
#[allow(clippy::too_many_arguments)]
17471744
fn create_close_io(
17481745
&mut self,
17491746
eid: usize,
17501747
ds_id: JobId,
17511748
dependencies: Vec<JobId>,
17521749
gw_id: GuestWorkId,
1753-
source: ClientId,
17541750
repair: Vec<ClientId>,
17551751
) -> DownstairsIO {
17561752
let close_ioop = IOop::ExtentFlushClose {
17571753
dependencies,
17581754
extent: eid,
17591755
flush_number: self.next_flush_id(),
17601756
gen_number: self.cfg.generation(),
1761-
source_downstairs: source,
17621757
repair_downstairs: repair,
17631758
};
17641759

@@ -1774,23 +1769,20 @@ impl Downstairs {
17741769
}
17751770
}
17761771

1777-
#[allow(clippy::too_many_arguments)]
17781772
fn create_and_enqueue_close_io(
17791773
&mut self,
17801774
gw: &mut GuestWork,
17811775
eid: u64,
17821776
deps: Vec<JobId>,
17831777
close_id: JobId,
17841778
gw_close_id: GuestWorkId,
1785-
source: ClientId,
17861779
repair: &[ClientId],
17871780
) {
17881781
let close_io = self.create_close_io(
17891782
eid as usize,
17901783
close_id,
17911784
deps,
17921785
gw_close_id,
1793-
source,
17941786
repair.to_vec(),
17951787
);
17961788

@@ -8146,15 +8138,13 @@ pub(crate) mod test {
81468138
// incorrect flush number
81478139
ds.next_flush = 0x1DE;
81488140
let next_flush = ds.next_flush;
8149-
let source = ClientId::new(1);
81508141
let repair = vec![ClientId::new(0), ClientId::new(2)];
81518142
ds.create_and_enqueue_close_io(
81528143
&mut gw,
81538144
eid,
81548145
deps,
81558146
repair_ids.close_id,
81568147
gw_close_id,
8157-
source,
81588148
&repair,
81598149
);
81608150

@@ -8167,7 +8157,6 @@ pub(crate) mod test {
81678157
extent,
81688158
flush_number,
81698159
gen_number,
8170-
source_downstairs,
81718160
repair_downstairs,
81728161
} => {
81738162
assert_eq!(
@@ -8177,7 +8166,6 @@ pub(crate) mod test {
81778166
assert_eq!(*extent, eid as usize);
81788167
assert_eq!(*flush_number, next_flush);
81798168
assert_eq!(*gen_number, ds.cfg.generation());
8180-
assert_eq!(*source_downstairs, source);
81818169
assert_eq!(*repair_downstairs, repair);
81828170
}
81838171
x => {
@@ -8383,7 +8371,6 @@ pub(crate) mod test {
83838371
deps,
83848372
extent_repair_ids.close_id,
83858373
gw_close_id,
8386-
ClientId::new(0), // source downstairs
83878374
&[ClientId::new(1)], // repair downstairs
83888375
);
83898376
let gw_repair_id = gw.next_gw_id();

upstairs/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,6 @@ enum IOop {
11791179
extent: usize,
11801180
flush_number: u64,
11811181
gen_number: u64,
1182-
source_downstairs: ClientId,
11831182
repair_downstairs: Vec<ClientId>,
11841183
},
11851184
ExtentLiveRepair {
@@ -1265,7 +1264,6 @@ impl IOop {
12651264
extent,
12661265
flush_number: _,
12671266
gen_number: _,
1268-
source_downstairs: _,
12691267
repair_downstairs: _,
12701268
} => {
12711269
let job_type = "FClose".to_string();

0 commit comments

Comments
 (0)