Browse Source

Merge pull request #1728 from xanatos/patch-11

Removed duplicated lock
0.8
Wladimir J. van der Laan 12 years ago
parent
commit
acbe4a1f32
  1. 5
      src/db.cpp

5
src/db.cpp

@ -195,10 +195,7 @@ CDB::CDB(const char *pszFile, const char* pszMode) :
{ {
delete pdb; delete pdb;
pdb = NULL; pdb = NULL;
{ --bitdb.mapFileUseCount[strFile];
LOCK(bitdb.cs_db);
--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