Skip to content

Commit fd990f7

Browse files
committed
more conflict check to above
1 parent cda864e commit fd990f7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libsql/src/local/connection.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,17 +596,16 @@ impl Connection {
596596
)
597597
};
598598

599+
if conflict != 0 {
600+
return Err(errors::Error::WalConflict);
601+
}
599602
if rc != 0 {
600603
return Err(errors::Error::SqliteFailure(
601604
rc as std::ffi::c_int,
602605
"wal_insert_frame failed".to_string(),
603606
));
604607
}
605608

606-
if conflict != 0 {
607-
return Err(errors::Error::WalConflict);
608-
}
609-
610609
Ok(())
611610
}
612611

0 commit comments

Comments
 (0)