MCPcopy Create free account
hub / github.com/LUX-Core/lux / CloseDb

Method CloseDb

src/db.cpp:361–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361void CDBEnv::CloseDb(const string& strFile)
362{
363 {
364 LOCK(cs_db);
365 if (mapDb[strFile] != NULL) {
366 // Close the database handle
367 Db* pdb = mapDb[strFile];
368 pdb->close(0);
369 delete pdb;
370 mapDb[strFile] = NULL;
371 }
372 }
373}
374
375bool CDBEnv::RemoveDb(const string& strFile)
376{

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