提交 d7d8a62b authored 作者: Noel Grandin's avatar Noel Grandin

vmlens: fix race conditions on nextAnalyze and changesSinceAnalyze

上级 d9ffc0b2
......@@ -727,6 +727,7 @@ public class MVTable extends TableBase {
}
private void analyzeIfRequired(Session session) {
synchronized (this) {
if (nextAnalyze == 0 || nextAnalyze > changesSinceAnalyze++) {
return;
}
......@@ -735,6 +736,7 @@ public class MVTable extends TableBase {
if (n > 0) {
nextAnalyze = n;
}
}
session.markTableForAnalyze(this);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论