提交 c5523965 authored 作者: Andrei Tokar's avatar Andrei Tokar

remove unused MVStore.init() method

上级 30b8d3ae
......@@ -138,11 +138,6 @@ public class MVMap<K, V> extends AbstractMap<K, V>
return "map." + Integer.toHexString(mapId);
}
/**
* Initialize this map.
*/
protected void init() {}
/**
* Add or replace a key-value pair.
*
......
......@@ -376,7 +376,6 @@ public class MVStore implements AutoCloseable {
backgroundExceptionHandler =
(UncaughtExceptionHandler)config.get("backgroundExceptionHandler");
meta = new MVMap<>(this);
meta.init();
if (this.fileStore != null) {
retentionTime = this.fileStore.getDefaultRetentionTime();
// 19 KB memory is about 1 KB storage
......@@ -512,7 +511,6 @@ public class MVStore implements AutoCloseable {
c.put("id", id);
c.put("createVersion", currentVersion);
map = builder.create(this, c);
map.init();
String x = Integer.toHexString(id);
meta.put(MVMap.getMapKey(id), map.asString(name));
meta.put("name." + name, x);
......@@ -542,7 +540,6 @@ public class MVStore implements AutoCloseable {
}
config.put("id", id);
map = builder.create(this, config);
map.init();
long root = getRootPos(meta, id);
map.setRootPos(root, lastStoredVersion);
maps.put(id, map);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论