提交 16abdf2f authored 作者: Thomas Mueller's avatar Thomas Mueller

A checkpoint is now done every MAX_LOG_SIZE / 2 instead of every MAX_LOG_SIZE,…

A checkpoint is now done every MAX_LOG_SIZE / 2 instead of every MAX_LOG_SIZE, so that the transaction log doesn't grow as large.
上级 d0734a05
......@@ -1439,7 +1439,7 @@ public class PageStore implements CacheWriter {
openForWriting();
log.commit(session.getId());
long size = log.getSize();
if (size - logSizeBase > maxLogSize) {
if (size - logSizeBase > maxLogSize / 2) {
int firstSection = log.getLogFirstSectionId();
checkpoint();
if (ignoreBigLog) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论