diff options
author | Alex <alex@adnab.me> | 2021-04-05 23:50:33 +0200 |
---|---|---|
committer | Alex <alex@adnab.me> | 2021-04-05 23:50:33 +0200 |
commit | 8225fa2e4b85349709f840df45b3ecc3bcfb8284 (patch) | |
tree | b300d7e3df823a878686d71cf7e728aeca7e56cc /src/model/object_table.rs | |
parent | 7d772737a58b3c8dce147e4704152e2e6471bd90 (diff) | |
parent | ab67bd88decc4f27876aaf7a1448070875c90258 (diff) | |
download | garage-8225fa2e4b85349709f840df45b3ecc3bcfb8284.tar.gz garage-8225fa2e4b85349709f840df45b3ecc3bcfb8284.zip |
Merge pull request 'Improved bootstraping procedure' (#56) from better_bootstrap into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/56
Diffstat (limited to 'src/model/object_table.rs')
-rw-r--r-- | src/model/object_table.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/model/object_table.rs b/src/model/object_table.rs index 62606df4..34ac798a 100644 --- a/src/model/object_table.rs +++ b/src/model/object_table.rs @@ -147,7 +147,9 @@ impl Entry<String, String> for Object { &self.key } fn is_tombstone(&self) -> bool { - self.versions.len() == 1 && self.versions[0].state == ObjectVersionState::Complete(ObjectVersionData::DeleteMarker) + self.versions.len() == 1 + && self.versions[0].state + == ObjectVersionState::Complete(ObjectVersionData::DeleteMarker) } } |