--- a/trb 8f651b1981a5a45802b027a4f765b37a91de6674699e451b596d50c15b952ed4bb564e639de012eacd56326e44f94f6ccfd54a85d1d12ba06ad6fad2c8711a1b +++ b/trb aa5e26e2c9d1766536fe673bbd27e6be3beb9eddb13de483c80b5ce5dd7c2f21caefff8af367d1e84264cfae5cb17817bd572604d99412b184f13cbf4ea29217 @@ -13181,7 +13181,7 @@ #endif ############################################################################## -32892 @ ./bitcoin/src/db.cpp +33001 @ ./bitcoin/src/db.cpp ############################################################################## // Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers @@ -13269,11 +13269,13 @@ printf("dbenv.open strLogDir=%s strErrorFile=%s\n", strLogDir.c_str(), strErrorFile.c_str()); dbenv.set_lg_dir(strLogDir.c_str()); - dbenv.set_lg_max(10000000); - dbenv.set_lk_max_locks(10000); - dbenv.set_lk_max_objects(10000); + dbenv.set_lg_max(1000000); + dbenv.set_lk_max_locks(40000); + dbenv.set_lk_max_objects(40000); dbenv.set_errfile(fopen(strErrorFile.c_str(), "a")); /// debug dbenv.set_flags(DB_AUTO_COMMIT, 1); + dbenv.set_flags(DB_TXN_WRITE_NOSYNC, 1); + dbenv.log_set_config(DB_LOG_AUTO_REMOVE, 1); ret = dbenv.open(strDataDir.c_str(), DB_CREATE | DB_INIT_LOCK |