trb

trb
Log | Files | Refs

commit d0056ce1ded08597b1413efc91303e96f6ea971e
parent e3b326a6e0efc6815754d7d370e225c71ec05749
Author: Shinoa-Fores <btcinfo@sdf.org>
Date:   Wed, 13 Jan 2021 17:20:08 -0500

asciilifeform_maxint_locks_corrected.vpatch

Diffstat:
Mbitcoin/src/db.cpp | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bitcoin/src/db.cpp b/bitcoin/src/db.cpp @@ -85,8 +85,9 @@ CDB::CDB(const char* pszFile, const char* pszMode) : pdb(NULL) dbenv.set_lg_dir(strLogDir.c_str()); dbenv.set_lg_max(1000000); - dbenv.set_lk_max_locks(40000); - dbenv.set_lk_max_objects(40000); + dbenv.set_lk_max_locks(2737000); + dbenv.set_lk_max_objects(1119200); + dbenv.set_lk_max_lockers(1119200); dbenv.set_errfile(fopen(strErrorFile.c_str(), "a")); /// debug dbenv.set_flags(DB_AUTO_COMMIT, 1); dbenv.set_flags(DB_TXN_WRITE_NOSYNC, 1);