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

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit fcad5690e5701423cc9be79f773f2d18449a8249
Author: HTHou <[email protected]>
AuthorDate: Mon Jul 13 21:57:24 2020 +0800

    fix check properties
---
 .../src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java 
b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java
index ccbe74f..e97a52d 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java
@@ -221,9 +221,9 @@ public class IoTDBConfigCheck {
       if (propertiesFile.exists()) {
         Files.delete(propertiesFile.toPath());
       }
-      // rename system.properties.tmp to system.properties
-      FileUtils.moveFile(tmpPropertiesFile, propertiesFile);
     }
+    // rename system.properties.tmp to system.properties
+    FileUtils.moveFile(tmpPropertiesFile, propertiesFile);
   }
 
 
@@ -252,9 +252,9 @@ public class IoTDBConfigCheck {
       if (propertiesFile.exists()) {
         Files.delete(propertiesFile.toPath());
       }
-      // rename system.properties.tmp to system.properties
-      FileUtils.moveFile(tmpPropertiesFile, propertiesFile);
     }
+    // rename system.properties.tmp to system.properties
+    FileUtils.moveFile(tmpPropertiesFile, propertiesFile);
   }
 
   /**

Reply via email to