yiguolei commented on code in PR #47784: URL: https://github.com/apache/doris/pull/47784#discussion_r1950989843
########## be/src/runtime/buffer_control_block.cpp: ########## @@ -160,7 +161,7 @@ BufferControlBlock::BufferControlBlock(TUniqueId id, int buffer_size, RuntimeSta _fragement_transmission_compression_type( state->fragement_transmission_compression_type()), _profile("BufferControlBlock " + print_id(_fragment_id)) { - _query_statistics = std::make_unique<QueryStatistics>(); + _resource_ctx = state->get_query_ctx()->resource_ctx; Review Comment: 通过方法访问,不要直接访问属性。 把resource ctx 改成private 的 -- 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