Skip to content

Commit

Permalink
Delete index cell on leaf pages by Cursor::delete()
Browse files Browse the repository at this point in the history
Deleting cells on index interior pages will be supported later.
  • Loading branch information
kawasin73 committed Nov 20, 2023
1 parent c47ba8e commit c2e2991
Show file tree
Hide file tree
Showing 4 changed files with 411 additions and 35 deletions.
4 changes: 2 additions & 2 deletions src/btree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,11 +811,11 @@ pub fn allocate_from_unallocated_space(
}

/// Write a table leaf cell to the specified offset.
pub fn write_leaf_cell<P: Payload<()>>(
pub fn write_leaf_cell(
buffer: &mut PageBufferMut,
offset: usize,
cell_header: &[u8],
payload: &P,
payload: &dyn Payload<()>,
n_local: u16,
overflow_page_id: Option<PageId>,
) {
Expand Down
Loading

0 comments on commit c2e2991

Please sign in to comment.