core/mvcc: add is_btree_allocated to MvccId

This commit is contained in:
Pere Diaz Bou
2025-10-29 16:04:32 +01:00
parent 4b616d1fd8
commit e78590b948

View File

@@ -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 {