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 07:28:36 UTC

[incubator-iotdb] branch fix_upgrade created (now 2e76135)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a change to branch fix_upgrade
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at 2e76135  fix upgrade

This branch includes the following new commits:

     new 2e76135  fix upgrade

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-iotdb] 01/01: fix upgrade

Posted by ha...@apache.org.
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 2e761355219fc352f5a0b13b6e3fe784c8187d05
Author: HTHou <hh...@outlook.com>
AuthorDate: Fri Jul 3 15:27:02 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 f034b94..bca9cb1 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
@@ -1562,7 +1562,9 @@ public class StorageGroupProcessor {
           }
         }
       }
-      UpgradeSevice.getINSTANCE().stop();
+      if (StorageEngine.getInstance().countUpgradeFiles() == 0) {
+        UpgradeSevice.getINSTANCE().stop();
+      }
     }
   }