mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Use QRecursiveMutex
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
This commit is contained in:
parent
45f59e7eca
commit
c9863dc225
@ -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)
|
||||
{
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user