mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-18 14:35:14 +01:00
Do not start statement subtransactions when MVCC is enabled
MVCC does not support statement-level rollback.
This commit is contained in:
@@ -2471,8 +2471,10 @@ pub fn op_transaction_inner(
|
||||
}
|
||||
}
|
||||
|
||||
let write = matches!(tx_mode, TransactionMode::Write);
|
||||
state.begin_statement(&program.connection, &pager, write)?;
|
||||
if mv_store.is_none() {
|
||||
let write = matches!(tx_mode, TransactionMode::Write);
|
||||
state.begin_statement(&program.connection, &pager, write)?;
|
||||
}
|
||||
|
||||
state.pc += 1;
|
||||
state.op_transaction_state = OpTransactionState::Start;
|
||||
|
||||
Reference in New Issue
Block a user