gavinchou commented on code in PR #67293:
URL: https://github.com/apache/doris/pull/67293#discussion_r3889413868
##########
be/src/io/fs/hdfs_file_reader.cpp:
##########
@@ -121,7 +122,8 @@ Status HdfsFileReader::close() {
Status HdfsFileReader::read_at_impl(size_t offset, Slice result, size_t*
bytes_read,
const IOContext* io_ctx) {
- SCOPED_TIMER(_total_read_time);
+ auto* read_timer = io_ctx != nullptr && io_ctx->is_dryrun ? nullptr :
_total_read_time;
Review Comment:
seems `read_timer` may still endup with nullptr?
--
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]