- Add no_x11 documentation and remove unnecessary debug flavor. - Changelog: https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.19.0.1.md
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
$OpenBSD: patch-src_wallet_db_cpp,v 1.5 2020/01/13 19:59:26 rsadowski Exp $
|
|
Index: src/wallet/db.cpp
|
|
--- src/wallet/db.cpp.orig
|
|
+++ src/wallet/db.cpp
|
|
@@ -1,4 +1,4 @@
|
|
-// Copyright (c) 2009-2010 Satoshi Nakamoto
|
|
+
|
|
// Copyright (c) 2009-2019 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
@@ -196,7 +196,9 @@ bool BerkeleyEnvironment::Open(bool retry)
|
|
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 |
|
|
@@ -253,7 +255,9 @@ BerkeleyEnvironment::BerkeleyEnvironment()
|
|
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 |
|