| 559 | } |
| 560 | |
| 561 | void 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 | |
| 575 | bool BerkeleyBatch::Rewrite(BerkeleyDatabase& database, const char* pszSkip) |
| 576 | { |
no test coverage detected