This is an automated email from the ASF dual-hosted git repository.
ericpai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 1ffad89 [IOTDB-2828] Update system_version in system.properties after
upgrading finished (#5385)
1ffad89 is described below
commit 1ffad89199b8103ad0e8e7903bc4e8f53a7e05f9
Author: BaiJian <[email protected]>
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 c285d82..fbc1295 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
@@ -267,6 +267,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
@@ -295,7 +296,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()) {