You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/01/11 16:45:14 UTC

[incubator-iotdb] branch fix_win_iotdb_env_bat updated: try to fix iotdb-env.bat error in some win envorinment

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

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


The following commit(s) were added to refs/heads/fix_win_iotdb_env_bat by this push:
     new 02796e6  try to fix iotdb-env.bat error in some win envorinment
02796e6 is described below

commit 02796e6b80c7610324fa9e9757df48da7646a0c9
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Sun Jan 12 00:43:38 2020 +0800

    try to fix iotdb-env.bat error in some win envorinment
---
 server/src/assembly/resources/conf/iotdb-env.bat | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/assembly/resources/conf/iotdb-env.bat b/server/src/assembly/resources/conf/iotdb-env.bat
index ce28f40..edf75d2 100644
--- a/server/src/assembly/resources/conf/iotdb-env.bat
+++ b/server/src/assembly/resources/conf/iotdb-env.bat
@@ -66,9 +66,9 @@ IF "%BIT_VERSION%" == "64-Bit" (
 @REM You can put your env variable here
 @REM set JAVA_HOME=%JAVA_HOME%
 
-:end_config_setting
 @REM set gc log.
-IF "x%1" equ "xprintgc" (
+:end_config_setting
+IF ["%1"] EQU ["printgc"] (
 	IF %JAVA_VERSION% == 8 (
 	    md %IOTDB_HOME%\logs
 		set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -Xloggc:"%IOTDB_HOME%\logs\gc.log" -XX:+PrintGCDateStamps -XX:+PrintGCDetails  -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M