diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-09-03 08:00:18 -0700 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-09-03 08:00:18 -0700 |
commit | acbe4a1f32a1cb145349cd753022b182e6baa1da (patch) | |
tree | f502e45bfca0d13652de15c96d31f1b6246598b6 | |
parent | eaf00a3a5d80fb50d761c14b7c295df6ae2f0e44 (diff) | |
parent | 028ec224b8acb9273e79c1c10c5278a102e3f305 (diff) |
Merge pull request #1728 from xanatos/patch-11
Removed duplicated lock
-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 5671993d37..015e7ec2de 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)); } |