mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-24 12:53:45 +00:00
Wrap return_if_locked in balance non root in debug assertion cfg
This commit is contained in:
parent
f025f7e91e
commit
d4cf8367ba
1 changed files with 5 additions and 2 deletions
|
@ -1944,8 +1944,11 @@ impl BTreeCursor {
|
|||
let current_sibling = sibling_pointer;
|
||||
for i in (0..=current_sibling).rev() {
|
||||
let page = self.pager.read_page(pgno as usize)?;
|
||||
return_if_locked!(page);
|
||||
debug_validate_cells!(&page.get_contents(), self.usable_space() as u16);
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
return_if_locked!(page);
|
||||
debug_validate_cells!(&page.get_contents(), self.usable_space() as u16);
|
||||
}
|
||||
pages_to_balance[i].replace(page);
|
||||
assert_eq!(
|
||||
parent_contents.overflow_cells.len(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue