This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 1f87cfc5aea branch-3.0: correct
`DeleteBitmap::get_delete_bitmap_count` (#49629)
1f87cfc5aea is described below
commit 1f87cfc5aeae0efadd31677a4253506a043c7556
Author: bobhan1 <[email protected]>
AuthorDate: Fri Mar 28 21:22:14 2025 +0800
branch-3.0: correct `DeleteBitmap::get_delete_bitmap_count` (#49629)
fix `DeleteBitmap::get_delete_bitmap_count`, don't include
`ROWSET_SENTINEL_MARK` for better problem hunting.
---
be/src/olap/tablet_meta.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/be/src/olap/tablet_meta.cpp b/be/src/olap/tablet_meta.cpp
index 670b48f07d7..3b58006f8d0 100644
--- a/be/src/olap/tablet_meta.cpp
+++ b/be/src/olap/tablet_meta.cpp
@@ -1314,7 +1314,13 @@ void
DeleteBitmap::remove_stale_delete_bitmap_from_queue(const std::vector<std::
uint64_t DeleteBitmap::get_delete_bitmap_count() {
std::shared_lock l(lock);
- return delete_bitmap.size();
+ uint64_t count = 0;
+ for (auto it = delete_bitmap.begin(); it != delete_bitmap.end(); it++) {
+ if (std::get<1>(it->first) != DeleteBitmap::INVALID_SEGMENT_ID) {
+ count++;
+ }
+ }
+ return count;
}
bool DeleteBitmap::has_calculated_for_multi_segments(const RowsetId&
rowset_id) const {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]