| 343 | } |
| 344 | |
| 345 | bool CDBEnv::RemoveDb(const string& strFile) |
| 346 | { |
| 347 | this->CloseDb(strFile); |
| 348 | |
| 349 | LOCK(cs_db); |
| 350 | int rc = dbenv->dbremove(NULL, strFile.c_str(), NULL, DB_AUTO_COMMIT); |
| 351 | return (rc == 0); |
| 352 | } |
| 353 | |
| 354 | bool CDB::Rewrite(const string& strFile, const char* pszSkip) |
| 355 | { |