diff --git a/core/mvcc/database/mod.rs b/core/mvcc/database/mod.rs index 0057e56d8..c249811b0 100644 --- a/core/mvcc/database/mod.rs +++ b/core/mvcc/database/mod.rs @@ -63,6 +63,10 @@ impl MVTableId { assert!(value < 0, "MVCC table IDs are always negative"); Self(value) } + + pub fn is_btree_allocated(&self) -> bool { + self.0 >= 0 + } } impl From for MVTableId {