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 d01fe7db5c5 pref: Set the maximum number of history records in the
history file / memory to 1,000 lines. (#15332)
d01fe7db5c5 is described below
commit d01fe7db5c50d9b0913d1e8acd321ee2a51979ba
Author: CritasWang <[email protected]>
AuthorDate: Mon Apr 14 15:13:29 2025 +0800
pref: Set the maximum number of history records in the history file /
memory to 1,000 lines. (#15332)
---
.../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