zhannngchen commented on code in PR #47028: URL: https://github.com/apache/doris/pull/47028#discussion_r1920198895
########## be/src/cloud/cloud_tablet_mgr.cpp: ########## @@ -419,4 +419,58 @@ void CloudTabletMgr::get_tablet_info(int64_t num_tablets, std::vector<TabletInfo } } +void CloudTabletMgr::get_max_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; + int64_t max_base_rowset_delete_bitmap_score_tablet_id = 0; + auto handler = [&](const std::weak_ptr<CloudTablet>& tablet_wk) { + auto t = tablet_wk.lock(); + if (!t) return; + uint64_t delete_bitmap_count = + t.get()->tablet_meta()->delete_bitmap().get_delete_bitmap_count(); + if (delete_bitmap_count > *max_delete_bitmap_score) { + max_delete_bitmap_score_tablet_id = t->tablet_id(); + *max_delete_bitmap_score = delete_bitmap_count; + } + //get base rowset delete bitmap count Review Comment: "get base rowset delete bitmap count" move this part of code as a function of Tablet -- 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