diff options
author | Felix Weilbach <felix.weilbach@nextcloud.com> | 2021-09-03 22:55:41 +0300 |
---|---|---|
committer | Felix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de> | 2021-09-08 11:54:00 +0300 |
commit | c9863dc2259bc85e014f0707ca32705dfc3fcfdb (patch) | |
tree | 452f3ee71eb970b8bef356951a9c15b773ed9691 /src/common | |
parent | 45f59e7eca8be180833f9971ccff1cecaabe9486 (diff) |
Use QRecursiveMutex
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/syncjournaldb.cpp | 1 | ||||
-rw-r--r-- | src/common/syncjournaldb.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/common/syncjournaldb.cpp b/src/common/syncjournaldb.cpp index 11dc84458..5c5195bba 100644 --- a/src/common/syncjournaldb.cpp +++ b/src/common/syncjournaldb.cpp @@ -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) { diff --git a/src/common/syncjournaldb.h b/src/common/syncjournaldb.h index 8436d4775..ba4c0ede8 100644 --- a/src/common/syncjournaldb.h +++ b/src/common/syncjournaldb.h @@ -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; |