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


##########
be/src/index-tools/index_tool.cpp:
##########
@@ -448,9 +459,9 @@ int main(int argc, char** argv) {
             // format: rowsetId_segmentId_indexId.idx
             std::string src_idx_full_name =
                     src_index_files[i] + "_" + std::to_string(index_id) + 
".idx";
-            DorisCompoundReader* reader = new DorisCompoundReader(
-                    DorisFSDirectoryFactory::getDirectory(fs, 
tablet_path.c_str()),
-                    src_idx_full_name.c_str());
+            const auto file_path = tablet_path + "/" + src_idx_full_name;

Review Comment:
   warning: 'const auto file_path' can be declared as 'const auto *const 
file_path' [readability-qualified-auto]
   
   ```suggestion
               const auto *const file_path = tablet_path + "/" + 
src_idx_full_name;
   ```
   



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to