aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2015-06-15 07:46:51 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-23 10:12:11 +0200
commitdaf956b7b196769f8027026dd047e72412a9a039 (patch)
tree2fa9a1ba44cda894eef4aaf3a7e83dad15f48e94 /src/wallet/db.h
parent8ea6d37aeed67d42428e38dcf3ee0771c8fff1d1 (diff)
downloadbitcoin-daf956b7b196769f8027026dd047e72412a9a039.tar.xz
fix crash on shutdown when e.g. changing -txindex and abort action
- fixes #3136 - the problem is related to Boost path and a static initialized internal pointer - using a std::string in CDBEnv::EnvShutdown() prevents the problem - this removes the boost::filesystem::path path field from CDBEnv Github-Pull: #6282 Rebased-From: 0ce30eaa36295447c6e7f8d16a05798c746fe28a
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r--src/wallet/db.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h
index 2df6f6e5a9..64071caa3a 100644
--- a/src/wallet/db.h
+++ b/src/wallet/db.h
@@ -27,7 +27,9 @@ class CDBEnv
private:
bool fDbEnvInit;
bool fMockDb;
- boost::filesystem::path path;
+ // Don't change into boost::filesystem::path, as that can result in
+ // shutdown problems/crashes caused by a static initialized internal pointer.
+ std::string strPath;
void EnvShutdown();