Merge pull request #1728 from xanatos/patch-11

Removed duplicated lock
This commit is contained in:
Wladimir J. van der Laan 2012-09-03 08:00:18 -07:00
commit acbe4a1f32

View File

@ -195,10 +195,7 @@ CDB::CDB(const char *pszFile, const char* pszMode) :
{
delete pdb;
pdb = NULL;
{
LOCK(bitdb.cs_db);
--bitdb.mapFileUseCount[strFile];
}
--bitdb.mapFileUseCount[strFile];
strFile = "";
throw runtime_error(strprintf("CDB() : can't open database file %s, error %d", pszFile, ret));
}