diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/storage_lmdb.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 6923d7c..600fbd1 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -829,7 +829,11 @@ public: | |||
829 | flags |= MDB_RDONLY; | 829 | flags |= MDB_RDONLY; |
830 | } | 830 | } |
831 | if ((rc = mdb_env_open(env, fullPath.toStdString().data(), flags, 0664))) { | 831 | if ((rc = mdb_env_open(env, fullPath.toStdString().data(), flags, 0664))) { |
832 | SinkWarningCtx(logCtx) << "mdb_env_open: " << rc << ":" << mdb_strerror(rc); | 832 | if (readOnly) { |
833 | SinkLogCtx(logCtx) << "Tried to open non-existing db: " << fullPath; | ||
834 | } else { | ||
835 | SinkWarningCtx(logCtx) << "mdb_env_open: " << rc << ":" << mdb_strerror(rc); | ||
836 | } | ||
833 | mdb_env_close(env); | 837 | mdb_env_close(env); |
834 | env = 0; | 838 | env = 0; |
835 | } else { | 839 | } else { |