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

The cache algorithm TQ is disabled

上级 36b59a65
...@@ -60,8 +60,8 @@ public class CacheLRU implements Cache { ...@@ -60,8 +60,8 @@ public class CacheLRU implements Cache {
prefix = "WEAK_"; prefix = "WEAK_";
} }
Cache cache; Cache cache;
if (CacheTQ.TYPE_NAME.equals(cacheType)) { if ("TQ".equals(cacheType)) {
cache = new CacheTQ(writer, cacheSize); cache = new CacheLRU(writer, cacheSize);
} else if (CacheLRU.TYPE_NAME.equals(cacheType)) { } else if (CacheLRU.TYPE_NAME.equals(cacheType)) {
cache = new CacheLRU(writer, cacheSize); cache = new CacheLRU(writer, cacheSize);
} else { } else {
......
...@@ -4,13 +4,19 @@ ...@@ -4,13 +4,19 @@
* (http://h2database.com/html/license.html). * (http://h2database.com/html/license.html).
* Initial Developer: H2 Group * Initial Developer: H2 Group
*/ */
package org.h2.util; package org.h2.dev.util;
import java.sql.SQLException; import java.sql.SQLException;
import org.h2.constant.SysProperties; import org.h2.constant.SysProperties;
import org.h2.engine.Constants; import org.h2.engine.Constants;
import org.h2.message.Message; import org.h2.message.Message;
import org.h2.util.Cache;
import org.h2.util.CacheHead;
import org.h2.util.CacheObject;
import org.h2.util.CacheWriter;
import org.h2.util.MathUtils;
import org.h2.util.ObjectArray;
/** /**
* A cache implementation based on the 2Q algorithm. * A cache implementation based on the 2Q algorithm.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论