* Periodically checkpoint the log.
This commit is contained in:
parent
698e880c9f
commit
3495d153b3
1 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,9 @@ void Database::close()
|
||||||
delete db;
|
delete db;
|
||||||
}
|
}
|
||||||
|
|
||||||
// env->txn_checkpoint(0, 0, 0);
|
/* Do a checkpoint every 128 kilobytes, or every 5 minutes. */
|
||||||
|
env->txn_checkpoint(128, 5, 0);
|
||||||
|
|
||||||
env->close(0);
|
env->close(0);
|
||||||
|
|
||||||
} catch (DbException e) { rethrow(e); }
|
} catch (DbException e) { rethrow(e); }
|
||||||
|
|
Loading…
Reference in a new issue