summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-23 21:45:18 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-24 00:16:33 +0200
commit46863ca3f5cc88ba4f3ecf9a2d00fc1fc3f30ec7 (patch)
tree90f77436c7a805cb1872da8768c659fc300e21b5
parent97d04f1d2d023358464a53ef62445e5bcdc7c04e (diff)
downloadsink-46863ca3f5cc88ba4f3ecf9a2d00fc1fc3f30ec7.tar.gz
sink-46863ca3f5cc88ba4f3ecf9a2d00fc1fc3f30ec7.zip
Opening dbis may fail in read-only mode
-rw-r--r--common/storage_lmdb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index d4dd6c1..7d11c9f 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -282,8 +282,9 @@ public:
282 if (readOnly) { 282 if (readOnly) {
283 mdb_txn_abort(dbiTransaction); 283 mdb_txn_abort(dbiTransaction);
284 mdb_txn_renew(transaction); 284 mdb_txn_renew(transaction);
285 } else {
286 SinkWarning() << "Failed to create the dbi: " << dbiName;
285 } 287 }
286 SinkWarning() << "Failed to create the dbi: " << dbiName;
287 dbi = 0; 288 dbi = 0;
288 transaction = 0; 289 transaction = 0;
289 return false; 290 return false;