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

code review comments addressed

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