diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/storage_lmdb.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 68157c9..d4dd6c1 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -42,18 +42,11 @@ typedef SSIZE_T ssize_t; | |||
42 | namespace Sink { | 42 | namespace Sink { |
43 | namespace Storage { | 43 | namespace Storage { |
44 | 44 | ||
45 | extern QReadWriteLock sDbisLock; | 45 | static QReadWriteLock sDbisLock; |
46 | extern QReadWriteLock sEnvironmentsLock; | 46 | static QReadWriteLock sEnvironmentsLock; |
47 | extern QMutex sCreateDbiLock; | 47 | static QMutex sCreateDbiLock; |
48 | extern QHash<QString, MDB_env *> sEnvironments; | 48 | static QHash<QString, MDB_env *> sEnvironments; |
49 | extern QHash<QString, MDB_dbi> sDbis; | 49 | static QHash<QString, MDB_dbi> sDbis; |
50 | |||
51 | |||
52 | QReadWriteLock sDbisLock; | ||
53 | QReadWriteLock sEnvironmentsLock; | ||
54 | QMutex sCreateDbiLock; | ||
55 | QHash<QString, MDB_env *> sEnvironments; | ||
56 | QHash<QString, MDB_dbi> sDbis; | ||
57 | 50 | ||
58 | int getErrorCode(int e) | 51 | int getErrorCode(int e) |
59 | { | 52 | { |