mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-27 11:54:30 +01:00
core/mvcc: add is_btree_allocated to MvccId
This commit is contained in:
@@ -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<i64> for MVTableId {
|
||||
|
||||
Reference in New Issue
Block a user