mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-14 12:34:20 +01:00
core/vdbe: Fix logic error during btree creation
I do thing we should change this 1,2 flag to 0,1 or just an enum, to be more rustacean. The current state can be very misleading
This commit is contained in:
@@ -4545,7 +4545,8 @@ pub fn op_open_ephemeral(
|
||||
buffer_pool,
|
||||
)?);
|
||||
|
||||
let root_page = pager.btree_create(*is_btree as usize);
|
||||
let flag = if *is_btree { 1 } else { 0 };
|
||||
let root_page = pager.btree_create(flag);
|
||||
|
||||
let (_, cursor_type) = program.cursor_ref.get(*cursor_id).unwrap();
|
||||
let mv_cursor = match state.mv_tx_id {
|
||||
|
||||
Reference in New Issue
Block a user