remove space allocated for overflow pointer in non-overflow cases

This commit is contained in:
jussisaurio
2024-12-25 23:09:23 +02:00
parent 381335724a
commit 80933a32e9

View File

@@ -1514,7 +1514,6 @@ impl BTreeCursor {
if record_buf.len() <= payload_overflow_threshold_max {
// enough allowed space to fit inside a btree page
cell_payload.extend_from_slice(record_buf.as_slice());
cell_payload.resize(cell_payload.len() + 4, 0);
return;
}
log::debug!("fill_cell_payload(overflow)");