提交 3b7bfb4f authored 作者: Jacek Ławrynowicz's avatar Jacek Ławrynowicz

LobStorageMap - remove redundant dataMap field

上级 ca9f9948
...@@ -60,14 +60,6 @@ public class LobStorageMap implements LobStorageInterface { ...@@ -60,14 +60,6 @@ public class LobStorageMap implements LobStorageInterface {
*/ */
private MVMap<Object[], Boolean> refMap; private MVMap<Object[], Boolean> refMap;
/**
* The stream store data map.
*
* Key: stream store block id (long).
* Value: data (byte[]).
*/
private MVMap<Long, byte[]> dataMap;
private StreamStore streamStore; private StreamStore streamStore;
public LobStorageMap(Database database) { public LobStorageMap(Database database) {
...@@ -90,7 +82,13 @@ public class LobStorageMap implements LobStorageInterface { ...@@ -90,7 +82,13 @@ public class LobStorageMap implements LobStorageInterface {
} }
lobMap = mvStore.openMap("lobMap"); lobMap = mvStore.openMap("lobMap");
refMap = mvStore.openMap("lobRef"); refMap = mvStore.openMap("lobRef");
dataMap = mvStore.openMap("lobData");
/* The stream store data map.
*
* Key: stream store block id (long).
* Value: data (byte[]).
*/
MVMap<Long, byte[]> dataMap = mvStore.openMap("lobData");
streamStore = new StreamStore(dataMap); streamStore = new StreamStore(dataMap);
// garbage collection of the last blocks // garbage collection of the last blocks
if (database.isReadOnly()) { if (database.isReadOnly()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论