aboutsummaryrefslogtreecommitdiff
path: root/src/block/layout.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-09-07 15:30:56 +0200
committerAlex Auvolat <alex@adnab.me>2023-09-07 15:30:56 +0200
commit2657b5c1b911b7c5f2d97f8c564e60202ddf4124 (patch)
tree130898ddcd7ae174c6ed3b55889a7939dd9d2c8f /src/block/layout.rs
parenteb972a8422e19e1eaf69281571f4e52f9c7794ff (diff)
downloadgarage-2657b5c1b911b7c5f2d97f8c564e60202ddf4124.tar.gz
garage-2657b5c1b911b7c5f2d97f8c564e60202ddf4124.zip
block manager: fix bugs
Diffstat (limited to 'src/block/layout.rs')
-rw-r--r--src/block/layout.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/block/layout.rs b/src/block/layout.rs
index e32ef785..1d8f4cda 100644
--- a/src/block/layout.rs
+++ b/src/block/layout.rs
@@ -200,7 +200,6 @@ impl DataLayout {
// it might have been removed and added again and might contain data,
// so add it as a secondary storage location for all partitions
// to make sure existing files are not lost
- let mut part_sec = vec![vec![]; DRIVE_NPART];
for (i, dd) in data_dirs.iter().enumerate() {
if self.data_dirs.iter().any(|ed| ed.path == dd.path) {
continue;