Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.cpp
Show First 20 Lines • Show All 932 Lines • ▼ Show 20 Lines | bool BerkeleyBatch::PeriodicFlush(BerkeleyDatabase &database) { | ||||
return ret; | return ret; | ||||
} | } | ||||
bool BerkeleyDatabase::Rewrite(const char *pszSkip) { | bool BerkeleyDatabase::Rewrite(const char *pszSkip) { | ||||
return BerkeleyBatch::Rewrite(*this, pszSkip); | return BerkeleyBatch::Rewrite(*this, pszSkip); | ||||
} | } | ||||
bool BerkeleyDatabase::Backup(const std::string &strDest) { | bool BerkeleyDatabase::Backup(const std::string &strDest) const { | ||||
if (IsDummy()) { | if (IsDummy()) { | ||||
return false; | return false; | ||||
} | } | ||||
while (true) { | while (true) { | ||||
{ | { | ||||
LOCK(cs_db); | LOCK(cs_db); | ||||
if (!env->mapFileUseCount.count(strFile) || | if (!env->mapFileUseCount.count(strFile) || | ||||
env->mapFileUseCount[strFile] == 0) { | env->mapFileUseCount[strFile] == 0) { | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |