Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/nodes/leaf_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already in cache state — e.g. a page restored from a CPR snapshot that was
promoted at snapshot time, then re-promoted by a write after recovery.
Nothing to convert. Mirrors convert_cache_records_to_insert, which already handles the symmetric case as a no-op.

// Mirrors convert_cache_records_to_insert, which already
// tolerates the already-converted case as a no-op.
}
};

Expand Down