提交 65f8edf3 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Use MVMap.get() in sizeAsLong() too just to be sure that result will be corrent

上级 235c28b2
......@@ -966,9 +966,10 @@ public class TransactionStore {
long size = 0;
Cursor<K, VersionedValue> cursor = map.cursor(null);
while (cursor.hasNext()) {
VersionedValue data;
K key = cursor.next();
data = getValue(key, readLogId, cursor.getValue());
// cursor.getValue() returns outdated value
VersionedValue data = map.get(key);
data = getValue(key, readLogId, data);
if (data != null && data.value != null) {
size++;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论