Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/bdb.cpp
Show First 20 Lines • Show All 929 Lines • ▼ Show 20 Lines | |||||
void BerkeleyDatabase::RemoveRef() { | void BerkeleyDatabase::RemoveRef() { | ||||
{ | { | ||||
LOCK(cs_db); | LOCK(cs_db); | ||||
--env->mapFileUseCount[strFile]; | --env->mapFileUseCount[strFile]; | ||||
} | } | ||||
env->m_db_in_use.notify_all(); | env->m_db_in_use.notify_all(); | ||||
} | } | ||||
std::unique_ptr<BerkeleyBatch> | std::unique_ptr<DatabaseBatch> | ||||
BerkeleyDatabase::MakeBatch(const char *mode, bool flush_on_close) { | BerkeleyDatabase::MakeBatch(const char *mode, bool flush_on_close) { | ||||
return std::make_unique<BerkeleyBatch>(*this, mode, flush_on_close); | return std::make_unique<BerkeleyBatch>(*this, mode, flush_on_close); | ||||
} | } |