提交 c5c640b9 authored 作者: Thomas Mueller's avatar Thomas Mueller

The default maximum log stream size is now 2 MB.

上级 2a1f38f3
...@@ -115,7 +115,7 @@ public class Constants { ...@@ -115,7 +115,7 @@ public class Constants {
/** /**
* The default value for the maximum transaction log size. * The default value for the maximum transaction log size.
*/ */
public static final long DEFAULT_MAX_LOG_SIZE = 32 * 1024 * 1024; public static final long DEFAULT_MAX_LOG_SIZE = 2 * 1024 * 1024;
/** /**
* The default maximum length on an in-memory LOB object. * The default maximum length on an in-memory LOB object.
......
...@@ -186,8 +186,7 @@ public class PageStore implements CacheWriter { ...@@ -186,8 +186,7 @@ public class PageStore implements CacheWriter {
*/ */
private HashMap<Integer, Integer> reservedPages; private HashMap<Integer, Integer> reservedPages;
private boolean isNew; private boolean isNew;
// TODO reduce DEFAULT_MAX_LOG_SIZE, and don't divide here private long maxLogSize = Constants.DEFAULT_MAX_LOG_SIZE;
private long maxLogSize = Constants.DEFAULT_MAX_LOG_SIZE / 10;
private Session systemSession; private Session systemSession;
private BitSet freed = new BitSet(); private BitSet freed = new BitSet();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论