github-actions[bot] commented on code in PR #34049:
URL: https://github.com/apache/doris/pull/34049#discussion_r1576567807
##########
be/src/io/fs/hdfs_file_system.h:
##########
@@ -62,18 +61,14 @@ class HdfsFileSystemHandle {
int64_t last_access_time() { return _last_access_time; }
- void inc_ref() {
- _ref_cnt++;
- _last_access_time = _now();
- }
-
- void dec_ref() {
- _ref_cnt--;
- _last_access_time = _now();
+ void update_last_access_time() {
Review Comment:
warning: method 'update_last_access_time' can be made const
[readability-make-member-function-const]
```suggestion
void update_last_access_time() const {
```
--
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]