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

Method CloseDb

src/wallet/db.cpp:331–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void CDBEnv::CloseDb(const string& strFile)
332{
333 {
334 LOCK(cs_db);
335 if (mapDb[strFile] != NULL) {
336 // Close the database handle
337 Db* pdb = mapDb[strFile];
338 pdb->close(0);
339 delete pdb;
340 mapDb[strFile] = NULL;
341 }
342 }
343}
344
345bool CDBEnv::RemoveDb(const string& strFile)
346{

Callers 4

RemoveDbMethod · 0.95
RewriteMethod · 0.80
ThreadFlushWalletDBFunction · 0.80
BackupWalletFunction · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected