From 132b9c3edf0c376f3a9002a8f51431464ba430f6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 23 May 2018 23:53:34 +0200 Subject: We need an extern declaration for non-static variables. Or so says the compiler. --- common/storage_lmdb.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 5fb1d0f..68157c9 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp @@ -44,12 +44,14 @@ namespace Storage { extern QReadWriteLock sDbisLock; extern QReadWriteLock sEnvironmentsLock; +extern QMutex sCreateDbiLock; extern QHash sEnvironments; extern QHash sDbis; QReadWriteLock sDbisLock; QReadWriteLock sEnvironmentsLock; +QMutex sCreateDbiLock; QHash sEnvironments; QHash sDbis; @@ -106,9 +108,6 @@ static QList getDatabaseNames(MDB_txn *transaction) * and we always need to commit the transaction ASAP * We can only ever enter from one point per process. */ - -QMutex sCreateDbiLock; - static bool createDbi(MDB_txn *transaction, const QByteArray &db, bool readOnly, bool allowDuplicates, MDB_dbi &dbi) { -- cgit v1.2.3