From 43e282c172c4b5604a4f0d9b70976fc0df00120f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 25 Jan 2015 14:37:37 +0100 Subject: debug output, fixed dummyresourcetest --- common/storage_lmdb.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common') 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) rc = mdb_txn_begin(d->env, NULL, requestedRead ? MDB_RDONLY : 0, &d->transaction); if (!rc) { rc = mdb_dbi_open(d->transaction, NULL, d->allowDuplicates ? MDB_DUPSORT : 0, &d->dbi); + if (rc) { + qWarning() << "Error while opening transaction: " << mdb_strerror(rc); + } + } else { + if (rc) { + qWarning() << "Error while beginning transaction: " << mdb_strerror(rc); + } } d->firstOpen = false; -- cgit v1.2.3