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()
166
166
167
167
bool BerkeleyEnvironment::Open (bool retry)
168
168
{
169
- if (fDbEnvInit )
169
+ if (fDbEnvInit ) {
170
170
return true ;
171
-
172
- boost::this_thread::interruption_point ();
171
+ }
173
172
174
173
fs::path pathIn = strPath;
175
174
TryCreateDirectories (pathIn);
@@ -238,13 +237,11 @@ bool BerkeleyEnvironment::Open(bool retry)
238
237
return true ;
239
238
}
240
239
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
242
241
BerkeleyEnvironment::BerkeleyEnvironment ()
243
242
{
244
243
Reset ();
245
244
246
- boost::this_thread::interruption_point ();
247
-
248
245
LogPrint (BCLog::DB, " BerkeleyEnvironment::MakeMock\n " );
249
246
250
247
dbenv->set_cachesize (1 , 0 , 1 );
@@ -263,8 +260,9 @@ BerkeleyEnvironment::BerkeleyEnvironment()
263
260
DB_THREAD |
264
261
DB_PRIVATE,
265
262
S_IRUSR | S_IWUSR);
266
- if (ret > 0 )
263
+ if (ret > 0 ) {
267
264
throw std::runtime_error (strprintf (" BerkeleyEnvironment::MakeMock: Error %d opening database environment." , ret));
265
+ }
268
266
269
267
fDbEnvInit = true ;
270
268
fMockDb = true ;
You can’t perform that action at this time.
0 commit comments