ZhongJinHacker opened a new issue, #35827:
URL: https://github.com/apache/doris/issues/35827

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   In method named chooseTablets in ConsistencyChecker exist unnecessary 
function call.
   
   please read the follow picture(and exist a englist syntax error in its 
comment)
   
   
![image](https://github.com/apache/doris/assets/15382560/60bf1013-2b9e-48c2-a8a7-48e27c8e7d09)
   
   
![image](https://github.com/apache/doris/assets/15382560/bf3cb03d-453c-4f45-91d1-253dc012d6f9)
    
   
   `dbIds` have been checked whether its size is empty , it is unnecessary to 
call `Math.max` method to avoid empty condition.
   It wastes computing resources
   
   ### Solution
   
   remove the `Math.max` call. It doesn't matter.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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