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/01/27 01:23:04 UTC

[iotdb] branch master updated: [IOTDB-2498] Fix cli history filename too long when using OpenID (#4987)

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

haonan 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 e55ded7  [IOTDB-2498] Fix cli history filename too long when using OpenID (#4987)
e55ded7 is described below

commit e55ded75a5a36f249ce0cffcfeb12329b6b0746b
Author: Haonan <hh...@outlook.com>
AuthorDate: Thu Jan 27 09:22:31 2022 +0800

    [IOTDB-2498] Fix cli history filename too long when using OpenID (#4987)
---
 cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java b/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
index 133c632..b185398 100644
--- a/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
+++ b/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
@@ -80,7 +80,7 @@ public class JlineUtils {
             + "-"
             + port
             + "-"
-            + username;
+            + username.hashCode();
     builder.variable(LineReader.HISTORY_FILE, new File(historyFilePath));
 
     // TODO: since the lexer doesn't produce tokens for quotation marks, disable the highlighter to