github-actions[bot] commented on code in PR #16083:
URL: https://github.com/apache/doris/pull/16083#discussion_r1080690283
##########
be/src/runtime/memory/mem_tracker_limiter.h:
##########
@@ -105,7 +105,8 @@ class MemTrackerLimiter final : public MemTracker {
int64_t limit() const { return _limit; }
bool limit_exceeded() const { return _limit >= 0 && _limit <
consumption(); }
- Status check_limit(int64_t bytes);
+ Status check_limit(int64_t bytes = 0);
+ bool is_overcommit_tracker() { return type() == Type::QUERY || type() ==
Type::LOAD; }
Review Comment:
warning: method 'is_overcommit_tracker' can be made const
[readability-make-member-function-const]
```suggestion
bool is_overcommit_tracker() const { return type() == Type::QUERY ||
type() == Type::LOAD; }
```
--
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]