Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Weilbach <felix.weilbach@nextcloud.com>2021-09-03 22:55:41 +0300
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>2021-09-08 11:54:00 +0300
commitc9863dc2259bc85e014f0707ca32705dfc3fcfdb (patch)
tree452f3ee71eb970b8bef356951a9c15b773ed9691 /src/common
parent45f59e7eca8be180833f9971ccff1cecaabe9486 (diff)
Use QRecursiveMutex
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/syncjournaldb.cpp1
-rw-r--r--src/common/syncjournaldb.h2
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;