mirror of
https://github.com/stashapp/stash.git
synced 2026-05-08 12:32:29 +02:00
Fix: Release DB Lock on Large Image Libraries (#6845)
This commit is contained in:
parent
22d2dbc46b
commit
a33cca6033
1 changed files with 3 additions and 1 deletions
|
|
@ -262,7 +262,9 @@ func (j *GenerateJob) Execute(ctx context.Context, progress *job.Progress) error
|
|||
|
||||
for f := range queue {
|
||||
if job.IsCancelled(ctx) {
|
||||
break
|
||||
// keep draining the queue so the producer goroutine can finish
|
||||
// and release its read transaction, otherwise the DB stays locked
|
||||
continue
|
||||
}
|
||||
|
||||
wg.Add()
|
||||
|
|
|
|||
Loading…
Reference in a new issue