From 46863ca3f5cc88ba4f3ecf9a2d00fc1fc3f30ec7 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 23 May 2018 21:45:18 +0200 Subject: Opening dbis may fail in read-only mode --- common/storage_lmdb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: if (readOnly) { mdb_txn_abort(dbiTransaction); mdb_txn_renew(transaction); + } else { + SinkWarning() << "Failed to create the dbi: " << dbiName; } - SinkWarning() << "Failed to create the dbi: " << dbiName; dbi = 0; transaction = 0; return false; -- cgit v1.2.3