aboutsummaryrefslogtreecommitdiff
path: root/src/model/object_table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-04-05 19:55:53 +0200
committerAlex Auvolat <alex@adnab.me>2021-04-05 19:55:53 +0200
commit0eb5baea1a8e23fd373685f40aa32a84f794ad49 (patch)
tree00b5180edcfab392eef203f594edb1332ccfce5d /src/model/object_table.rs
parent7d772737a58b3c8dce147e4704152e2e6471bd90 (diff)
downloadgarage-0eb5baea1a8e23fd373685f40aa32a84f794ad49.tar.gz
garage-0eb5baea1a8e23fd373685f40aa32a84f794ad49.zip
Improve bootstraping: do it regularly; persist peer list
Diffstat (limited to 'src/model/object_table.rs')
-rw-r--r--src/model/object_table.rs4
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)
}
}