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

MVStore: the maximum cache size was artificially limited to 2 GB (due to an integer overflow).

上级 60ab827b
...@@ -17,7 +17,9 @@ Change Log ...@@ -17,7 +17,9 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>MVStore / TransactionStore: concurrent updates could result in a <ul><li>MVStore: the maximum cache size was artificially limited to 2 GB
(due to an integer overflow).
</li><li>MVStore / TransactionStore: concurrent updates could result in a
"Too many open transactions" exception. "Too many open transactions" exception.
</li><li>StringUtils.toUpperEnglish now has a small cache. </li><li>StringUtils.toUpperEnglish now has a small cache.
This should speed up reading from a ResultSet when using the column name. This should speed up reading from a ResultSet when using the column name.
......
...@@ -316,7 +316,7 @@ public class MVStore { ...@@ -316,7 +316,7 @@ public class MVStore {
o = config.get("cacheSize"); o = config.get("cacheSize");
int mb = o == null ? 16 : (Integer) o; int mb = o == null ? 16 : (Integer) o;
if (mb > 0) { if (mb > 0) {
int maxMemoryBytes = mb * 1024 * 1024; long maxMemoryBytes = mb * 1024L * 1024L;
int segmentCount = 16; int segmentCount = 16;
int stackMoveDistance = 8; int stackMoveDistance = 8;
cache = new CacheLongKeyLIRS<Page>( cache = new CacheLongKeyLIRS<Page>(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论