diff options
| author | xanatos <[email protected]> | 2012-08-27 15:08:20 +0300 |
|---|---|---|
| committer | xanatos <[email protected]> | 2012-08-27 15:08:20 +0300 |
| commit | 028ec224b8acb9273e79c1c10c5278a102e3f305 (patch) | |
| tree | bc63962c684c9dd0a87aa0767a6eb5a4047c8d4d /src/db.cpp | |
| parent | Merge branch '2012_08_progressbarwin' of git://github.com/laanwj/bitcoin (diff) | |
| download | discoin-028ec224b8acb9273e79c1c10c5278a102e3f305.tar.xz discoin-028ec224b8acb9273e79c1c10c5278a102e3f305.zip | |
Removed duplicated lock
Around line 167 there is already a LOCK(bitdb.cs_db) that covers everything. Re-locking is useless.
Diffstat (limited to 'src/db.cpp')
| -rw-r--r-- | src/db.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/db.cpp b/src/db.cpp index 5671993d3..015e7ec2d 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -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)); } |