提交 851f06c4 authored 作者: andrei's avatar andrei

code review comments addressed

上级 15bd9cfb
......@@ -222,7 +222,7 @@ public final class MVStore {
private Compressor compressorHigh;
public final UncaughtExceptionHandler backgroundExceptionHandler;
private final UncaughtExceptionHandler backgroundExceptionHandler;
private volatile long currentVersion;
......@@ -890,8 +890,8 @@ public final class MVStore {
// the thread also synchronized on this, which
// could result in a deadlock
stopBackgroundThread();
closed = true;
synchronized (this) {
closed = true;
if (fileStore != null && shrinkIfPossible) {
shrinkFileIfPossible(0);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论