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.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index aeb4dd6..3687594 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -524,7 +524,13 @@ QList<QByteArray> Storage::Transaction::getDatabaseNames() const
524 list << QByteArray::fromRawData((char *)key.mv_data, key.mv_size); 524 list << QByteArray::fromRawData((char *)key.mv_data, key.mv_size);
525 } 525 }
526 } else { 526 } else {
527 Warning() << "Failed to get a value" << rc; 527 //Normal if we don't have any databases yet
528 if (rc == MDB_NOTFOUND) {
529 rc = 0;
530 }
531 if (rc) {
532 Warning() << "Failed to get a value" << rc;
533 }
528 } 534 }
529 } else { 535 } else {
530 Warning() << "Failed to open db" << rc << QByteArray(mdb_strerror(rc)); 536 Warning() << "Failed to open db" << rc << QByteArray(mdb_strerror(rc));