From f76efa8642706e30f960fcc73327861791c125a3 Mon Sep 17 00:00:00 2001 From: nasrullah Date: Mon, 24 Aug 2026 13:04:22 -0700 Subject: [PATCH] fix: no-op on already-cached records in covert_insert_records_to_cache --- src/nodes/leaf_node.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nodes/leaf_node.rs b/src/nodes/leaf_node.rs index a1c4a1e..2068902 100644 --- a/src/nodes/leaf_node.rs +++ b/src/nodes/leaf_node.rs @@ -281,7 +281,9 @@ impl LeafNode { meta.set_op_type(OpType::Phantom); } OpType::Cache | OpType::Phantom => { - unreachable!("Base page should not have op type: {:?}", op_type); + // Already in cache state — nothing to convert. + // Mirrors convert_cache_records_to_insert, which already + // tolerates the already-converted case as a no-op. } };