SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
net/bitcoin/patches/patch-src_wallet_bdb_cpp
Normal file
23
net/bitcoin/patches/patch-src_wallet_bdb_cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
Index: src/wallet/bdb.cpp
|
||||
--- src/wallet/bdb.cpp.orig
|
||||
+++ src/wallet/bdb.cpp
|
||||
@@ -168,7 +168,9 @@ bool BerkeleyEnvironment::Open(bilingual_str& err)
|
||||
dbenv->set_errfile(fsbridge::fopen(pathErrorFile, "a")); /// debug
|
||||
dbenv->set_flags(DB_AUTO_COMMIT, 1);
|
||||
dbenv->set_flags(DB_TXN_WRITE_NOSYNC, 1);
|
||||
+#if ((DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 7))
|
||||
dbenv->log_set_config(DB_LOG_AUTO_REMOVE, 1);
|
||||
+#endif
|
||||
int ret = dbenv->open(strPath.c_str(),
|
||||
DB_CREATE |
|
||||
DB_INIT_LOCK |
|
||||
@@ -211,7 +213,9 @@ BerkeleyEnvironment::BerkeleyEnvironment() : m_use_sha
|
||||
dbenv->set_lk_max_locks(10000);
|
||||
dbenv->set_lk_max_objects(10000);
|
||||
dbenv->set_flags(DB_AUTO_COMMIT, 1);
|
||||
+#if ((DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 7))
|
||||
dbenv->log_set_config(DB_LOG_IN_MEMORY, 1);
|
||||
+#endif
|
||||
int ret = dbenv->open(nullptr,
|
||||
DB_CREATE |
|
||||
DB_INIT_LOCK |
|
Loading…
Add table
Add a link
Reference in a new issue