github-actions[bot] commented on code in PR #16472:
URL: https://github.com/apache/doris/pull/16472#discussion_r1098381056


##########
be/src/olap/tablet.h:
##########
@@ -360,6 +360,11 @@ class Tablet : public BaseTablet {
 
     RowsetSharedPtr get_rowset(const RowsetId& rowset_id);
 
+    inline void increase_io_error_times();

Review Comment:
   warning: inline function 'doris::Tablet::increase_io_error_times' is not 
defined [clang-diagnostic-undefined-inline]
   ```cpp
       inline void increase_io_error_times();
                   ^
   ```
   **be/src/olap/reader.cpp:102:** used here
   ```cpp
               _tablet->increase_io_error_times();
                        ^
   ```
   



##########
be/src/olap/tablet.cpp:
##########
@@ -1374,7 +1374,10 @@ void Tablet::build_tablet_report_info(TTabletInfo* 
tablet_info,
         // and perform state modification operations.
     }
 
-    if (has_version_cross && tablet_state() == TABLET_RUNNING) {
+    auto is_io_error_too_times = is_io_error_too_times();
+    if ((has_version_cross || is_io_error_too_times) && tablet_state() == 
TABLET_RUNNING) {

Review Comment:
   warning: variable 'is_io_error_too_times' declared with deduced type 'auto' 
cannot appear in its own initializer [clang-diagnostic-error]
   ```cpp
   imes = is_io_error_too_times();
          ^
   ```
   



-- 
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