diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-30 23:59:52 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-12 19:04:44 +0100 |
commit | c6e200a8ab36633f1a3598f54e9e9f8ca5b6c461 (patch) | |
tree | ea6daba17f812353d05ac4d2413cca21bff93871 /src/blockchain_db/lmdb/db_lmdb.cpp | |
parent | Merge pull request #2271 (diff) | |
download | monero-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 '')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 2 |
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())); } |