diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/db.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/db.cc b/src/libstore/db.cc index a97111a3a96d..72823be8bbf6 100644 --- a/src/libstore/db.cc +++ b/src/libstore/db.cc @@ -160,7 +160,7 @@ void Database::open(const string & path) env->set_lg_bsize(32 * 1024); /* default */ env->set_lg_max(256 * 1024); /* must be > 4 * lg_bsize */ env->set_lk_detect(DB_LOCK_DEFAULT); - env->set_flags(DB_TXN_WRITE_NOSYNC, 1); + env->set_flags(DB_TXN_WRITE_NOSYNC | DB_LOG_AUTOREMOVE, 1); /* The following code provides automatic recovery of the |