| 329 | } |
| 330 | |
| 331 | void 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 | |
| 345 | bool CDBEnv::RemoveDb(const string& strFile) |
| 346 | { |
no test coverage detected