This is an automated email from the ASF dual-hosted git repository.
tanxinyu 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 a06761911d RatisConsensus set default flush to unsafe (#6487)
a06761911d is described below
commit a06761911d6d6bd0b134734cebe85908a4e29454
Author: William Song <[email protected]>
AuthorDate: Wed Jun 29 00:25:58 2022 +0800
RatisConsensus set default flush to unsafe (#6487)
* set flush to unsafe
* set flush to unsafe
---
.../src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
b/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
index 5a1574177c..b7c00bc503 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
@@ -525,7 +525,7 @@ public class RatisConfig {
private SizeInBytes preallocatedSize = SizeInBytes.valueOf("4MB");
private SizeInBytes writeBufferSize = SizeInBytes.valueOf("64KB");
private int forceSyncNum = 128;
- private boolean unsafeFlushEnabled = false;
+ private boolean unsafeFlushEnabled = true;
public Log build() {
return new Log(