summaryrefslogtreecommitdiffstats
path: root/common/storage_lmdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r--common/storage_lmdb.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index b7fbfed..98c1032 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -169,6 +169,13 @@ bool Storage::startTransaction(AccessMode type)
169 rc = mdb_txn_begin(d->env, NULL, requestedRead ? MDB_RDONLY : 0, &d->transaction); 169 rc = mdb_txn_begin(d->env, NULL, requestedRead ? MDB_RDONLY : 0, &d->transaction);
170 if (!rc) { 170 if (!rc) {
171 rc = mdb_dbi_open(d->transaction, NULL, d->allowDuplicates ? MDB_DUPSORT : 0, &d->dbi); 171 rc = mdb_dbi_open(d->transaction, NULL, d->allowDuplicates ? MDB_DUPSORT : 0, &d->dbi);
172 if (rc) {
173 qWarning() << "Error while opening transaction: " << mdb_strerror(rc);
174 }
175 } else {
176 if (rc) {
177 qWarning() << "Error while beginning transaction: " << mdb_strerror(rc);
178 }
172 } 179 }
173 180
174 d->firstOpen = false; 181 d->firstOpen = false;