You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zh...@apache.org on 2019/11/11 06:20:40 UTC
[incubator-doris] branch master updated: Support decrease
edit_log_roll_num config (#2171)
This is an automated email from the ASF dual-hosted git repository.
zhaoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 06befc4 Support decrease edit_log_roll_num config (#2171)
06befc4 is described below
commit 06befc45ede260c4d3217079363cb9521176d6bf
Author: kangkaisen <ka...@apache.org>
AuthorDate: Mon Nov 11 14:20:32 2019 +0800
Support decrease edit_log_roll_num config (#2171)
---
fe/src/main/java/org/apache/doris/persist/EditLog.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fe/src/main/java/org/apache/doris/persist/EditLog.java b/fe/src/main/java/org/apache/doris/persist/EditLog.java
index 41def65..81f5743 100644
--- a/fe/src/main/java/org/apache/doris/persist/EditLog.java
+++ b/fe/src/main/java/org/apache/doris/persist/EditLog.java
@@ -762,8 +762,9 @@ public class EditLog {
txId, numTransactions, totalTimeTransactions, op);
}
- if (txId == Config.edit_log_roll_num) {
- LOG.info("txId is equal to edit_log_roll_num {}, will roll edit.", txId);
+ if (txId >= Config.edit_log_roll_num) {
+ LOG.info("txId {} is equal to or larger than edit_log_roll_num {}, will roll edit.",
+ txId, Config.edit_log_roll_num);
rollEditLog();
txId = 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org