| 359 | } |
| 360 | |
| 361 | void 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 | |
| 375 | bool CDBEnv::RemoveDb(const string& strFile) |
| 376 | { |
no test coverage detected