You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2020/07/03 03:34:58 UTC
[incubator-iotdb] 01/01: fix upgrade
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch fix_upgrade
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 7247c76f1aa3091950e9a3030ed3f082508e724e
Author: HTHou <hh...@outlook.com>
AuthorDate: Fri Jul 3 11:34:10 2020 +0800
fix upgrade
---
.../apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
index 8042e05..b82bcce 100755
--- a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
@@ -1540,7 +1540,9 @@ public class StorageGroupProcessor {
}
}
}
- UpgradeSevice.getINSTANCE().stop();
+ if (StorageEngine.getInstance().countUpgradeFiles() == 0) {
+ UpgradeSevice.getINSTANCE().stop();
+ }
}
}