Use QRecursiveMutex

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
This commit is contained in:
Felix Weilbach 2021-09-03 21:55:41 +02:00 committed by Felix Weilbach (Rebase PR Action)
parent 45f59e7eca
commit c9863dc225
2 changed files with 1 additions and 2 deletions

View File

@ -93,7 +93,6 @@ static QByteArray defaultJournalMode(const QString &dbPath)
SyncJournalDb::SyncJournalDb(const QString &dbFilePath, QObject *parent)
: QObject(parent)
, _dbFile(dbFilePath)
, _mutex(QMutex::Recursive)
, _transaction(0)
, _metadataTableIsEmpty(false)
{

View File

@ -393,7 +393,7 @@ private:
SqlDatabase _db;
QString _dbFile;
QMutex _mutex; // Public functions are protected with the mutex.
QRecursiveMutex _mutex; // Public functions are protected with the mutex.
QMap<QByteArray, int> _checksymTypeCache;
int _transaction;
bool _metadataTableIsEmpty;