fixed io lock with alloced files from for example aria2c

This commit is contained in:
nvrl committed 2026-07-21 23:23:20 +02:00
1 parent 2275004f79
commit 9d55ffb9f6
7 files changed
+130 -92

No files matched your search

+4 -3
View File
@@ -138,8 +138,8 @@ impl Db {
};
conn.execute(
"INSERT INTO pending_op
(kind, uid, parent_uid, name, blob_path, meta_json, created_at)
VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7)",
(kind, uid, parent_uid, name, blob_path, meta_json, created_at, next_attempt_at)
VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)",
params![
op.kind,
op.uid,
@@ -147,7 +147,8 @@ impl Db {
op.name,
op.blob_path,
op.meta_json,
op.created_at
op.created_at,
op.next_attempt_at
],
)?;
Ok((conn.last_insert_rowid(), superseded))