mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 23:46:31 +03:00
feat: delete_msgs: Use transaction() instead of call_write()
Explicit transaction does the only commit (and fsync()).
This commit is contained in:
@@ -707,9 +707,6 @@ pub(crate) async fn save(
|
||||
))?;
|
||||
|
||||
if timestamp > newest_timestamp {
|
||||
// okay to drop, as we use cached prepared statements
|
||||
drop(stmt_test);
|
||||
drop(stmt_insert);
|
||||
newest_timestamp = timestamp;
|
||||
newest_location_id = Some(u32::try_from(conn.last_insert_rowid())?);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user