Userwhite commented on code in PR #62058:
URL: https://github.com/apache/doris/pull/62058#discussion_r3031383275


##########
be/src/storage/tablet/tablet.h:
##########
@@ -468,13 +480,29 @@ class Tablet final : public BaseTablet {
     int64_t get_table_id() { return _tablet_meta->table_id(); }
 
     // binlog related functions
-    bool is_enable_binlog();
-    bool is_binlog_enabled() { return 
_tablet_meta->binlog_config().is_enable(); }
+    bool enable_binlog() const {
+        return config::enable_feature_binlog && 
_tablet_meta->binlog_config().is_enable();
+    }
+    bool enable_ccr_binlog() const {
+        return enable_binlog() && 
_tablet_meta->binlog_config().isCCRBinlogFormat();
+    }
+    bool enable_row_binlog() const {
+        return _tablet_meta->binlog_config().is_enable() &&
+               _tablet_meta->binlog_config().isRowBinlogFormat();

Review Comment:
   row binlog can't be decided by config:: enable_feature_binlog



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to