mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-08 02:34:20 +01:00
Merge 'Fix AutoCommit for IO halting' from Diego Reis
IDK if I'm being naive here but it was the easiest way that I found to handle it. closes #1004 Reviewed-by: Pere Diaz Bou <pere-altea@homail.com> Closes #1129
This commit is contained in:
@@ -1275,6 +1275,10 @@ impl Program {
|
||||
rollback,
|
||||
} => {
|
||||
let conn = self.connection.upgrade().unwrap();
|
||||
if matches!(state.halt_state, Some(HaltState::Checkpointing)) {
|
||||
return self.halt(pager, state, mv_store);
|
||||
}
|
||||
|
||||
if *auto_commit != *conn.auto_commit.borrow() {
|
||||
if *rollback {
|
||||
todo!("Rollback is not implemented");
|
||||
|
||||
@@ -25,5 +25,4 @@ source $testdir/changes.test
|
||||
source $testdir/total-changes.test
|
||||
source $testdir/offset.test
|
||||
source $testdir/scalar-functions-printf.test
|
||||
# Disabled until https://github.com/tursodatabase/limbo/issues/1004 is fixed
|
||||
# source $testdir/transactions.test
|
||||
source $testdir/transactions.test
|
||||
|
||||
Reference in New Issue
Block a user