提交 52af11c9 authored 作者: noelgrandin's avatar noelgrandin

change the PageStore#changeCount field from an int to a long, to cope with…

change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates.
上级 bfca1799
...@@ -46,6 +46,7 @@ Change Log ...@@ -46,6 +46,7 @@ Change Log
</li><li>Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin. </li><li>Issue 481: Further extensions to PgServer to support better support PG JDBC, patch from Andrew Franklin.
</li><li>Add support for spatial datatype GEOMETRY. </li><li>Add support for spatial datatype GEOMETRY.
</li><li>Add support for in-memory spatial index. </li><li>Add support for in-memory spatial index.
</li><li>change the PageStore#changeCount field from an int to a long, to cope with databases with very high transaction rates.
</li></ul> </li></ul>
<h2>Version 1.3.172 (2013-05-25)</h2> <h2>Version 1.3.172 (2013-05-25)</h2>
......
...@@ -74,7 +74,7 @@ public abstract class Page extends CacheObject { ...@@ -74,7 +74,7 @@ public abstract class Page extends CacheObject {
/** /**
* When this page was changed the last time. * When this page was changed the last time.
*/ */
protected int changeCount; protected long changeCount;
/** /**
* Copy the data to a new location, change the parent to point to the new * Copy the data to a new location, change the parent to point to the new
......
...@@ -193,7 +193,7 @@ public class PageStore implements CacheWriter { ...@@ -193,7 +193,7 @@ public class PageStore implements CacheWriter {
* when using a very small cache size. The value starts at 1 so that * when using a very small cache size. The value starts at 1 so that
* pages with change count 0 can be evicted from the cache. * pages with change count 0 can be evicted from the cache.
*/ */
private int changeCount = 1; private long changeCount = 1;
private Data emptyPage; private Data emptyPage;
private long logSizeBase; private long logSizeBase;
...@@ -1960,7 +1960,7 @@ public class PageStore implements CacheWriter { ...@@ -1960,7 +1960,7 @@ public class PageStore implements CacheWriter {
* *
* @return the change count * @return the change count
*/ */
public int getChangeCount() { public long getChangeCount() {
return changeCount; return changeCount;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论