zhannngchen commented on code in PR #50080:
URL: https://github.com/apache/doris/pull/50080#discussion_r2052078374


##########
be/src/olap/tablet_meta.cpp:
##########
@@ -1390,6 +1391,19 @@ DeleteBitmap::Version 
DeleteBitmap::_get_rowset_cache_version(const BitmapKey& b
     return 0;
 }
 
+void DeleteBitmap::traverse_rowset_id_prefix(
+        const std::function<void(const RowsetId& rowsetId)>& func) const {
+    std::shared_lock rlock {lock};
+    auto it = delete_bitmap.cbegin();
+    while (it != delete_bitmap.cend()) {
+        RowsetId rowset_id = std::get<0>(it->first);
+        func(rowset_id);
+        // find next rowset id
+        it = delete_bitmap.upper_bound({rowset_id, 
std::numeric_limits<SegmentId>::max(),

Review Comment:
   the key count is not accurate if you skip to next rowsetid



-- 
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

Reply via email to