Browse Source

Removed duplicated lock

Around line 167 there is already a LOCK(bitdb.cs_db) that covers everything. Re-locking is useless.
0.8
xanatos 12 years ago
parent
commit
028ec224b8
  1. 3
      src/db.cpp

3
src/db.cpp

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

Loading…
Cancel
Save