Skip to content

Commit

Permalink
remove write lock during backup (#2033)
Browse files Browse the repository at this point in the history
* remove write lock during backup

* remove whole line
  • Loading branch information
MattDHill authored Dec 6, 2022
1 parent 428997f commit ddd00d4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions backend/src/backup/backup_bulk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,6 @@ async fn perform_backup<Db: DbHandle>(
.await;

let mut tx = db.begin().await?;
crate::db::DatabaseModel::new()
.package_data()
.idx(&package_id)
.lock(&mut tx, LockType::Write)
.await?;

installed_model.lock(&mut tx, LockType::Write).await?;

Expand Down

0 comments on commit ddd00d4

Please sign in to comment.