2023-08-18 18:38:43 +00:00
|
|
|
Index: src/wallet/bdb.cpp
|
|
|
|
--- src/wallet/bdb.cpp.orig
|
|
|
|
+++ src/wallet/bdb.cpp
|
|
|
|
@@ -158,7 +158,9 @@ bool BerkeleyEnvironment::Open(bilingual_str& err)
|
2023-08-16 22:26:55 +00:00
|
|
|
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 |
|
2023-08-18 18:38:43 +00:00
|
|
|
@@ -201,7 +203,9 @@ BerkeleyEnvironment::BerkeleyEnvironment()
|
2023-08-16 22:26:55 +00:00
|
|
|
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 |
|