mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
wallet: Remove unused boost::this_thread::interruption_point
This commit is contained in:
parent
270616228b
commit
fad1de66a2
1 changed files with 5 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue