Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.cpp
Show First 20 Lines • Show All 714 Lines • ▼ Show 20 Lines | while (true) { | ||||
"database file %s\n", | "database file %s\n", | ||||
strFileRes); | strFileRes); | ||||
} | } | ||||
return fSuccess; | return fSuccess; | ||||
} | } | ||||
} | } | ||||
MilliSleep(100); | MilliSleep(100); | ||||
} | } | ||||
return false; | |||||
} | } | ||||
void BerkeleyEnvironment::Flush(bool fShutdown) { | void BerkeleyEnvironment::Flush(bool fShutdown) { | ||||
int64_t nStart = GetTimeMillis(); | int64_t nStart = GetTimeMillis(); | ||||
// Flush log data to the actual data file on all files that are not in use | // Flush log data to the actual data file on all files that are not in use | ||||
LogPrint(BCLog::DB, "BerkeleyEnvironment::Flush: Flush(%s)%s\n", | LogPrint(BCLog::DB, "BerkeleyEnvironment::Flush: Flush(%s)%s\n", | ||||
fShutdown ? "true" : "false", | fShutdown ? "true" : "false", | ||||
fDbEnvInit ? "" : " database not started"); | fDbEnvInit ? "" : " database not started"); | ||||
▲ Show 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | while (true) { | ||||
LogPrintf("error copying %s to %s - %s\n", strFile, | LogPrintf("error copying %s to %s - %s\n", strFile, | ||||
pathDest.string(), e.what()); | pathDest.string(), e.what()); | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
MilliSleep(100); | MilliSleep(100); | ||||
} | } | ||||
return false; | |||||
} | } | ||||
void BerkeleyDatabase::Flush(bool shutdown) { | void BerkeleyDatabase::Flush(bool shutdown) { | ||||
if (!IsDummy()) { | if (!IsDummy()) { | ||||
env->Flush(shutdown); | env->Flush(shutdown); | ||||
} | } | ||||
} | } |