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

flash buffer on size calculation

上级 9cc5ebee
...@@ -111,7 +111,7 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> { ...@@ -111,7 +111,7 @@ public class TransactionMap<K, V> extends AbstractMap<K, V> {
for (int i = opentransactions.nextSetBit(0); i >= 0; i = opentransactions.nextSetBit(i+1)) { for (int i = opentransactions.nextSetBit(0); i >= 0; i = opentransactions.nextSetBit(i+1)) {
MVMap<Long, Object[]> undoLog = store.undoLogs[i]; MVMap<Long, Object[]> undoLog = store.undoLogs[i];
if (undoLog != null) { if (undoLog != null) {
MVMap.RootReference rootReference = undoLog.getRoot(); MVMap.RootReference rootReference = undoLog.flushAndGetRoot();
undoLogRootReferences[i] = rootReference; undoLogRootReferences[i] = rootReference;
undoLogSize += rootReference.getTotalCount(); undoLogSize += rootReference.getTotalCount();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论