mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-12 11:19:08 -05:00
Removed duplicated lock
Around line 167 there is already a LOCK(bitdb.cs_db) that covers everything. Re-locking is useless.
This commit is contained in:
parent
772351b0d5
commit
028ec224b8
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue