mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
fix cell_get_raw_region
length calculation
This commit is contained in:
parent
0f59fc7e36
commit
d9453f6e06
1 changed files with 4 additions and 4 deletions
|
@ -626,9 +626,9 @@ impl PageContent {
|
|||
usable_size,
|
||||
);
|
||||
if overflows {
|
||||
4 + to_read + n_payload + 4
|
||||
4 + to_read + n_payload
|
||||
} else {
|
||||
4 + len_payload as usize + n_payload + 4
|
||||
4 + len_payload as usize + n_payload
|
||||
}
|
||||
}
|
||||
PageType::TableInterior => {
|
||||
|
@ -644,9 +644,9 @@ impl PageContent {
|
|||
usable_size,
|
||||
);
|
||||
if overflows {
|
||||
to_read + n_payload + 4
|
||||
to_read + n_payload
|
||||
} else {
|
||||
len_payload as usize + n_payload + 4
|
||||
len_payload as usize + n_payload
|
||||
}
|
||||
}
|
||||
PageType::TableLeaf => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue