Skip to content

Commit

Permalink
merge bitcoin#18792: Remove boost from PeriodicFlush
Browse files Browse the repository at this point in the history
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
  • Loading branch information
kwvg and UdjinM6 committed Jul 15, 2021
1 parent efbc709 commit 52d7f81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
3 changes: 0 additions & 3 deletions src/wallet/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include <sys/stat.h>
#endif

#include <boost/thread.hpp>

namespace {

//! Make sure database has a unique fileid within the environment. If it
Expand Down Expand Up @@ -761,7 +759,6 @@ bool BerkeleyBatch::PeriodicFlush(BerkeleyDatabase& database)

if (nRefCount == 0)
{
boost::this_thread::interruption_point();
std::map<std::string, int>::iterator mi = env->mapFileUseCount.find(strFile);
if (mi != env->mapFileUseCount.end())
{
Expand Down
14 changes: 2 additions & 12 deletions src/wallet/walletdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include <atomic>

#include <boost/thread.hpp>

//
// WalletBatch
//
Expand Down Expand Up @@ -666,11 +664,7 @@ DBErrors WalletBatch::LoadWallet(CWallet* pwallet)
// Store initial external keypool size since we mostly use external keys in mixing
pwallet->nKeysLeftSinceAutoBackup = pwallet->KeypoolCountExternalKeys();
pwallet->WalletLogPrintf("nKeysLeftSinceAutoBackup: %d\n", pwallet->nKeysLeftSinceAutoBackup);
}
catch (const boost::thread_interrupted&) {
throw;
}
catch (...) {
} catch (...) {
result = DBErrors::CORRUPT;
}

Expand Down Expand Up @@ -762,11 +756,7 @@ DBErrors WalletBatch::FindWalletTx(std::vector<uint256>& vTxHash, std::vector<CW
}
}
pcursor->close();
}
catch (const boost::thread_interrupted&) {
throw;
}
catch (...) {
} catch (...) {
result = DBErrors::CORRUPT;
}

Expand Down

0 comments on commit 52d7f81

Please sign in to comment.