aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-11-07 16:06:22 -0500
committerMarcoFalke <falke.marco@gmail.com>2019-11-07 16:01:34 -0500
commitfad1de66a29bf6bd348a932150dad7d472feb3d0 (patch)
tree7d6601cd4f716b466622aa27ad788099be3cfa6d /src/wallet/db.cpp
parent270616228bc9a3856a0a82dea26ac3480b7585cd (diff)
wallet: Remove unused boost::this_thread::interruption_point
Diffstat (limited to 'src/wallet/db.cpp')
-rw-r--r--src/wallet/db.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index e48eee6c2c..76f14cb33f 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -166,10 +166,9 @@ BerkeleyEnvironment::~BerkeleyEnvironment()
bool BerkeleyEnvironment::Open(bool retry)
{
- if (fDbEnvInit)
+ if (fDbEnvInit) {
return true;
-
- boost::this_thread::interruption_point();
+ }
fs::path pathIn = strPath;
TryCreateDirectories(pathIn);
@@ -238,13 +237,11 @@ bool BerkeleyEnvironment::Open(bool retry)
return true;
}
-//! Construct an in-memory mock Berkeley environment for testing and as a place-holder for g_dbenvs emplace
+//! Construct an in-memory mock Berkeley environment for testing
BerkeleyEnvironment::BerkeleyEnvironment()
{
Reset();
- boost::this_thread::interruption_point();
-
LogPrint(BCLog::DB, "BerkeleyEnvironment::MakeMock\n");
dbenv->set_cachesize(1, 0, 1);
@@ -263,8 +260,9 @@ BerkeleyEnvironment::BerkeleyEnvironment()
DB_THREAD |
DB_PRIVATE,
S_IRUSR | S_IWUSR);
- if (ret > 0)
+ if (ret > 0) {
throw std::runtime_error(strprintf("BerkeleyEnvironment::MakeMock: Error %d opening database environment.", ret));
+ }
fDbEnvInit = true;
fMockDb = true;