aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-07-30 23:59:52 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-12 19:04:44 +0100
commitc6e200a8ab36633f1a3598f54e9e9f8ca5b6c461 (patch)
treeea6daba17f812353d05ac4d2413cca21bff93871 /src/blockchain_db/lmdb
parentMerge pull request #2271 (diff)
downloadmonero-c6e200a8ab36633f1a3598f54e9e9f8ca5b6c461.tar.xz
core: add --db-salvage command line flag
Use to load the database when the primary meta page is corrupted
Diffstat (limited to 'src/blockchain_db/lmdb')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 0073ddf54..4441c7578 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -213,7 +213,7 @@ const std::string lmdb_error(const std::string& error_string, int mdb_res)
inline void lmdb_db_open(MDB_txn* txn, const char* name, int flags, MDB_dbi& dbi, const std::string& error_string)
{
if (auto res = mdb_dbi_open(txn, name, flags, &dbi))
- throw0(cryptonote::DB_OPEN_FAILURE(lmdb_error(error_string + " : ", res).c_str()));
+ throw0(cryptonote::DB_OPEN_FAILURE((lmdb_error(error_string + " : ", res) + std::string(" - you may want to start with --db-salvage")).c_str()));
}