aboutsummaryrefslogtreecommitdiff
path: root/src/model/object_table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/object_table.rs')
-rw-r--r--src/model/object_table.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/model/object_table.rs b/src/model/object_table.rs
index 99fad3ce..62606df4 100644
--- a/src/model/object_table.rs
+++ b/src/model/object_table.rs
@@ -146,6 +146,9 @@ impl Entry<String, String> for Object {
fn sort_key(&self) -> &String {
&self.key
}
+ fn is_tombstone(&self) -> bool {
+ self.versions.len() == 1 && self.versions[0].state == ObjectVersionState::Complete(ObjectVersionData::DeleteMarker)
+ }
}
impl CRDT for Object {