提交 1b77ee19 authored 作者: Noel Grandin's avatar Noel Grandin

fix found by TestMVTableEngine in multithreaded mode

上级 82ae5a95
...@@ -60,7 +60,9 @@ public class MVMap<K, V> extends AbstractMap<K, V> ...@@ -60,7 +60,9 @@ public class MVMap<K, V> extends AbstractMap<K, V>
private ConcurrentArrayList<Page> oldRoots = private ConcurrentArrayList<Page> oldRoots =
new ConcurrentArrayList<Page>(); new ConcurrentArrayList<Page>();
private boolean closed;
/** volatile so we don't accidentally write to a closed map in multithreaded mode */
private volatile boolean closed;
private boolean readOnly; private boolean readOnly;
private boolean isVolatile; private boolean isVolatile;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论