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 2022/04/14 09:20:15 UTC

[iotdb] branch IOTDB-2836-13 created (now 5cc733006a)

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

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


      at 5cc733006a [IOTDB-2828] Update system_version in system.properties after upgrading finished (#5385)

This branch includes the following new commits:

     new 5cc733006a [IOTDB-2828] Update system_version in system.properties after upgrading finished (#5385)

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.



[iotdb] 01/01: [IOTDB-2828] Update system_version in system.properties after upgrading finished (#5385)

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch IOTDB-2836-13
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 5cc733006a9ee05c64f6e374c39ea0f97c7e2260
Author: BaiJian <er...@hotmail.com>
AuthorDate: Thu Mar 31 12:44:19 2022 +0800

    [IOTDB-2828] Update system_version in system.properties after upgrading finished (#5385)
---
 server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 d4492c7cea..c9bc95a803 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
@@ -256,6 +256,7 @@ public class IoTDBConfigCheck {
               properties.setProperty(k, v);
             }
           });
+      properties.setProperty(IOTDB_VERSION_STRING, IoTDBConstant.VERSION);
       properties.store(tmpFOS, SYSTEM_PROPERTIES_STRING);
 
       // upgrade finished, delete old system.properties file
@@ -284,7 +285,7 @@ public class IoTDBConfigCheck {
               properties.setProperty(k, v);
             }
           });
-
+      properties.setProperty(IOTDB_VERSION_STRING, IoTDBConstant.VERSION);
       properties.store(tmpFOS, SYSTEM_PROPERTIES_STRING);
       // upgrade finished, delete old system.properties file
       if (propertiesFile.exists()) {