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

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


The following commit(s) were added to refs/heads/multileader_restart_test by 
this push:
     new 1f967d5f98 change BATCH_LIMIT to 1 in WALReader
1f967d5f98 is described below

commit 1f967d5f987b3097ffcbf4ef1c2b6058765b004a
Author: Jinrui.Zhang <[email protected]>
AuthorDate: Fri Jul 8 19:58:43 2022 +0800

    change BATCH_LIMIT to 1 in WALReader
---
 server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java 
b/server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java
index 50e74ad3e0..024e84026d 100644
--- a/server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java
+++ b/server/src/main/java/org/apache/iotdb/db/wal/io/WALReader.java
@@ -49,7 +49,7 @@ public class WALReader implements Closeable {
   private static final int STREAM_BUFFER_SIZE =
       (int) 
IoTDBDescriptor.getInstance().getConfig().getWalFileSizeThresholdInByte() / 10;
   /** 1000 as default batch limit */
-  private static final int BATCH_LIMIT = 1_000;
+  private static final int BATCH_LIMIT = 1;
 
   private final File logFile;
   private final DataInputStream logStream;

Reply via email to