Support decrease edit_log_roll_num config (#2171)

This commit is contained in:
kangkaisen
2019-11-11 14:20:32 +08:00
committed by ZHAO Chun
parent 288cf1ec80
commit 06befc45ed

View File

@ -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;
}