aboutsummaryrefslogtreecommitdiff
path: root/src/block/repair.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-23 12:11:14 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-23 12:15:52 +0100
commitcd1069c1d4219deb7d48758fb9d0a45cc4c1eddb (patch)
tree4348cda954b0dcb24169a2b92b25e2de085e27e9 /src/block/repair.rs
parent07c78959480327af3709dc0e7b6c8f798cef9c92 (diff)
downloadgarage-cd1069c1d4219deb7d48758fb9d0a45cc4c1eddb.tar.gz
garage-cd1069c1d4219deb7d48758fb9d0a45cc4c1eddb.zip
[refactor-block] refactor DataBlock and DataBlockPath
Diffstat (limited to 'src/block/repair.rs')
-rw-r--r--src/block/repair.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block/repair.rs b/src/block/repair.rs
index 77ee0d14..2c8acbc9 100644
--- a/src/block/repair.rs
+++ b/src/block/repair.rs
@@ -584,8 +584,8 @@ impl Worker for RebalanceWorker {
let prim_loc = self.manager.data_layout.load().primary_block_dir(&hash);
if path.ancestors().all(|x| x != prim_loc) {
let block_path = match path.extension() {
- None => DataBlockPath::Plain(path.clone()),
- Some(x) if x.to_str() == Some("zst") => DataBlockPath::Compressed(path.clone()),
+ None => DataBlockPath::plain(path.clone()),
+ Some(x) if x.to_str() == Some("zst") => DataBlockPath::compressed(path.clone()),
_ => {
warn!("not rebalancing file: {}", path.to_string_lossy());
return Ok(WorkerState::Busy);