MCPcopy Create free account
hub / github.com/ElementsProject/elements / CloseDb

Method CloseDb

src/wallet/bdb.cpp:409–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void BerkeleyEnvironment::CloseDb(const std::string& strFile)
410{
411 {
412 LOCK(cs_db);
413 auto it = m_databases.find(strFile);
414 assert(it != m_databases.end());
415 BerkeleyDatabase& database = it->second.get();
416 if (database.m_db) {
417 // Close the database handle
418 database.m_db->close(0);
419 database.m_db.reset();
420 }
421 }
422}
423
424void BerkeleyEnvironment::ReloadDbEnv()
425{

Callers 4

~BerkeleyDatabaseMethod · 0.80
RewriteMethod · 0.80
PeriodicFlushMethod · 0.80
BackupMethod · 0.80

Calls 5

findMethod · 0.80
endMethod · 0.45
getMethod · 0.45
closeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected