zhannngchen commented on code in PR #47028: URL: https://github.com/apache/doris/pull/47028#discussion_r1940387661
########## be/src/cloud/cloud_tablet_mgr.cpp: ########## @@ -419,4 +419,50 @@ void CloudTabletMgr::get_tablet_info(int64_t num_tablets, std::vector<TabletInfo } } +void CloudTabletMgr::get_topn_tablet_delete_bitmap_score( + uint64_t* max_delete_bitmap_score, uint64_t* max_base_rowset_delete_bitmap_score) { + int64_t max_delete_bitmap_score_tablet_id = 0; + OlapStopWatch watch; + uint64_t total_delete_map_count = 0; + int64_t max_base_rowset_delete_bitmap_score_tablet_id = 0; + int n = config::check_tablet_delete_bitmap_score_top_n; + std::vector<std::pair<std::shared_ptr<CloudTablet>, int64_t>> buf; Review Comment: Why not use `priority_queue`? -- 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