git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
12ea223
)
Enable DB_LOG_AUTO_REMOVE flag
author
alex
<alex@alex-VirtualBox.(none)>
Sat, 29 Jun 2013 09:59:19 +0000 (13:59 +0400)
committer
alex
<alex@alex-VirtualBox.(none)>
Sat, 29 Jun 2013 09:59:19 +0000 (13:59 +0400)
src/db.cpp
patch
|
blob
|
history
diff --git
a/src/db.cpp
b/src/db.cpp
index
dc0c426
..
55f76f7
100644
(file)
--- a/
src/db.cpp
+++ b/
src/db.cpp
@@
-95,7
+95,7
@@
bool CDBEnv::Open(boost::filesystem::path pathEnv_)
dbenv.set_errfile(fopen(pathErrorFile.string().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);
+ dbenv.log_set_config(DB_LOG_AUTO_REMOVE, 1);
int ret = dbenv.open(strPath.c_str(),
DB_CREATE |
DB_INIT_LOCK |