archive/bz2: unlock the archive mutex and lock the file mutex

Fixes deadlock because FileInputStream::Read() unlocks the mutex
(which was not locked) and then locks it, keeping it locked.  This can
result in a deadlock.  This happens because the archive and the file
mutex are different.
This commit is contained in:
Max Kellermann
2017-12-22 16:02:23 +01:00
parent 412c0a965c
commit 4b18460bc6
2 changed files with 5 additions and 2 deletions

2
NEWS
View File

@@ -1,6 +1,8 @@
ver 0.20.14 (not yet released)
* database
- simple: fix file corruption in the presence of mount points
* archive
- bz2: fix deadlock
* fix Solaris build failure
ver 0.20.13 (2017/12/18)