| 373 | } |
| 374 | |
| 375 | bool CDBEnv::RemoveDb(const string& strFile) |
| 376 | { |
| 377 | this->CloseDb(strFile); |
| 378 | |
| 379 | LOCK(cs_db); |
| 380 | int rc = dbenv->dbremove(NULL, strFile.c_str(), NULL, DB_AUTO_COMMIT); |
| 381 | return (rc == 0); |
| 382 | } |
| 383 | |
| 384 | bool CDB::Rewrite(const string& strFile, const char* pszSkip) |
| 385 | { |