Skip to content

Commit bf50dd5

Browse files
authored
[fix](binlog) Wrong judgment of anyEnable for add binlog (apache#48919)
Related PR: apache#40680 View doesn't have the binlog config cache, so the binlog is not enabled by default when a view is created.
1 parent 293b809 commit bf50dd5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎fe/fe-core/src/main/java/org/apache/doris/binlog/BinlogManager.java‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,7 @@ private void addBinlog(long dbId, List<Long> tableIds, long commitSeq, long time
158158
if (tableIds != null) {
159159
for (long tableId : tableIds) {
160160
boolean tableBinlogEnable = binlogConfigCache.isEnableTable(dbId, tableId);
161-
if (tableIds.size() > 1) {
162-
anyEnable = anyEnable || tableBinlogEnable;
163-
} else {
164-
anyEnable = tableBinlogEnable;
165-
}
161+
anyEnable = anyEnable || tableBinlogEnable;
166162
if (anyEnable) {
167163
break;
168164
}

0 commit comments

Comments
 (0)