From e78590b948d0cf1623d08f89f884a107efc327bd Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Wed, 29 Oct 2025 16:04:32 +0100 Subject: [PATCH] core/mvcc: add is_btree_allocated to MvccId --- core/mvcc/database/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 {