Annotation of ports/net/ccnetc/litecoin/patches/patch-src_db_cpp, Revision 1.1.1.1
1.1 kirby 1: $OpenBSD$
2:
3: Build with BerkeleyDB <4.7
4:
5: --- src/db.cpp.orig Tue Jun 25 16:27:24 2013
6: +++ src/db.cpp Sat Jun 29 16:52:19 2013
7: @@ -83,7 +83,9 @@ bool CDBEnv::Open(const boost::filesystem::path& pathI
8: dbenv.set_errfile(fopen(pathErrorFile.string().c_str(), "a")); /// debug
9: dbenv.set_flags(DB_AUTO_COMMIT, 1);
10: dbenv.set_flags(DB_TXN_WRITE_NOSYNC, 1);
11: +#if DB_VERSION_MINOR > 7
12: dbenv.log_set_config(DB_LOG_AUTO_REMOVE, 1);
13: +#endif
14: int ret = dbenv.open(path.string().c_str(),
15: DB_CREATE |
16: DB_INIT_LOCK |
17: @@ -117,7 +119,9 @@ void CDBEnv::MakeMock()
18: dbenv.set_lk_max_locks(10000);
19: dbenv.set_lk_max_objects(10000);
20: dbenv.set_flags(DB_AUTO_COMMIT, 1);
21: +#if DB_VERSION_MINOR > 7
22: dbenv.log_set_config(DB_LOG_IN_MEMORY, 1);
23: +#endif
24: int ret = dbenv.open(NULL,
25: DB_CREATE |
26: DB_INIT_LOCK |
CVSweb