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

no need to clear statistics data unless we are turning it off

上级 e5557508
...@@ -2269,9 +2269,11 @@ public class Database implements DataHandler { ...@@ -2269,9 +2269,11 @@ public class Database implements DataHandler {
public void setQueryStatistics(boolean b) { public void setQueryStatistics(boolean b) {
queryStatistics = b; queryStatistics = b;
synchronized (this) { synchronized (this) {
if (!b) {
queryStatisticsData = null; queryStatisticsData = null;
} }
} }
}
public boolean getQueryStatistics() { public boolean getQueryStatistics() {
return queryStatistics; return queryStatistics;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论