MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CloseDb

Method CloseDb

src/wallet/db.cpp:561–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void BerkeleyEnvironment::CloseDb(const std::string& strFile)
562{
563 {
564 LOCK(cs_db);
565 if (mapDb[strFile] != nullptr) {
566 // Close the database handle
567 Db* pdb = mapDb[strFile];
568 pdb->close(0);
569 delete pdb;
570 mapDb[strFile] = nullptr;
571 }
572 }
573}
574
575bool BerkeleyBatch::Rewrite(BerkeleyDatabase& database, const char* pszSkip)
576{

Callers 3

RewriteMethod · 0.80
PeriodicFlushMethod · 0.80
BackupMethod · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected