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

critas pushed a commit to branch wx_pref_jline
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit e2ea5e092b280f851fd3dc201018396838d6324c
Author: CritasWang <[email protected]>
AuthorDate: Mon Apr 14 14:30:06 2025 +0800

    pref: Set the maximum number of history records in the history file / 
memory to 1,000 lines.
---
 .../cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java      | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java 
b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
index 00b6349fff7..ab039e6dfcd 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/utils/JlineUtils.java
@@ -97,6 +97,10 @@ public class JlineUtils {
               + "-"
               + username.hashCode();
       builder.variable(LineReader.HISTORY_FILE, new File(historyFilePath));
+      // Set the maximum number of history records in the history file to 
1,000 lines.
+      builder.variable(LineReader.HISTORY_FILE_SIZE, 1_000);
+      // Set the maximum number of history records in memory to 1,000 lines.
+      builder.variable(LineReader.HISTORY_SIZE, 1_000);
     }
 
     // TODO: since the lexer doesn't produce tokens for quotation marks, 
disable the highlighter to

Reply via email to