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:
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;