|
|
|
@ -915,7 +915,7 @@ bool CWalletDB::Recover(CDBEnv& dbenv, const std::string& filename, bool fOnlyKe
@@ -915,7 +915,7 @@ bool CWalletDB::Recover(CDBEnv& dbenv, const std::string& filename, bool fOnlyKe
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
std::vector<CDBEnv::KeyValPair> salvagedData; |
|
|
|
|
bool allOK = dbenv.Salvage(newFilename, true, salvagedData); |
|
|
|
|
bool fSuccess = dbenv.Salvage(newFilename, true, salvagedData); |
|
|
|
|
if (salvagedData.empty()) |
|
|
|
|
{ |
|
|
|
|
LogPrintf("Salvage(aggressive) found no records in %s.\n", newFilename); |
|
|
|
@ -923,7 +923,6 @@ bool CWalletDB::Recover(CDBEnv& dbenv, const std::string& filename, bool fOnlyKe
@@ -923,7 +923,6 @@ bool CWalletDB::Recover(CDBEnv& dbenv, const std::string& filename, bool fOnlyKe
|
|
|
|
|
} |
|
|
|
|
LogPrintf("Salvage(aggressive) found %u records\n", salvagedData.size()); |
|
|
|
|
|
|
|
|
|
bool fSuccess = allOK; |
|
|
|
|
boost::scoped_ptr<Db> pdbCopy(new Db(dbenv.dbenv, 0)); |
|
|
|
|
int ret = pdbCopy->open(NULL, // Txn pointer
|
|
|
|
|
filename.c_str(), // Filename
|
|
|
|
|