File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,9 @@ BerkeleyEnvironment::~BerkeleyEnvironment()
166166
167167bool BerkeleyEnvironment::Open (bool retry)
168168{
169- if (fDbEnvInit )
169+ if (fDbEnvInit ) {
170170 return true ;
171-
172- boost::this_thread::interruption_point ();
171+ }
173172
174173 fs::path pathIn = strPath;
175174 TryCreateDirectories (pathIn);
@@ -238,13 +237,11 @@ bool BerkeleyEnvironment::Open(bool retry)
238237 return true ;
239238}
240239
241- // ! Construct an in-memory mock Berkeley environment for testing and as a place-holder for g_dbenvs emplace
240+ // ! Construct an in-memory mock Berkeley environment for testing
242241BerkeleyEnvironment::BerkeleyEnvironment ()
243242{
244243 Reset ();
245244
246- boost::this_thread::interruption_point ();
247-
248245 LogPrint (BCLog::DB, " BerkeleyEnvironment::MakeMock\n " );
249246
250247 dbenv->set_cachesize (1 , 0 , 1 );
@@ -263,8 +260,9 @@ BerkeleyEnvironment::BerkeleyEnvironment()
263260 DB_THREAD |
264261 DB_PRIVATE,
265262 S_IRUSR | S_IWUSR);
266- if (ret > 0 )
263+ if (ret > 0 ) {
267264 throw std::runtime_error (strprintf (" BerkeleyEnvironment::MakeMock: Error %d opening database environment." , ret));
265+ }
268266
269267 fDbEnvInit = true ;
270268 fMockDb = true ;
You can’t perform that action at this time.
0 commit comments