diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-26 18:59:17 +0000 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-26 18:59:17 +0000 |
commit | 0a283e4e70bbced6e1087df10e661a5a3d33289e (patch) | |
tree | 795aba9da84b7bafdf003fb01027c4be31e80945 /src/garage | |
parent | 9cb870f950504b142e2954d2e1eb76929aaf689f (diff) | |
download | garage-0a283e4e70bbced6e1087df10e661a5a3d33289e.tar.gz garage-0a283e4e70bbced6e1087df10e661a5a3d33289e.zip |
Fix deletion propagation
Diffstat (limited to 'src/garage')
-rw-r--r-- | src/garage/repair.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/garage/repair.rs b/src/garage/repair.rs index e91b4159..f2ca64ae 100644 --- a/src/garage/repair.rs +++ b/src/garage/repair.rs @@ -4,6 +4,7 @@ use tokio::sync::watch; use garage_core::block_ref_table::*; use garage_core::garage::Garage; +use garage_core::object_table::*; use garage_core::version_table::*; use garage_table::*; use garage_util::error::Error; @@ -105,7 +106,10 @@ impl Repair { .get(&version.bucket, &version.key) .await?; let version_exists = match object { - Some(o) => o.versions().iter().any(|x| x.uuid == version.uuid), + Some(o) => o + .versions() + .iter() + .any(|x| x.uuid == version.uuid && x.state != ObjectVersionState::Aborted), None => { warn!( "Repair versions: object for version {:?} not found", |