This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new 76abb4aad6 [fix](merge-on-write) The delete bitmap of the currently
imported rowset is not persistent (#16859) (#17008)
76abb4aad6 is described below
commit 76abb4aad6ca9c371fd1e9c384851843d7c12384
Author: Xin Liao <[email protected]>
AuthorDate: Wed Feb 22 16:17:14 2023 +0800
[fix](merge-on-write) The delete bitmap of the currently imported rowset is
not persistent (#16859) (#17008)
cherry-pick from: #16859
---
be/src/olap/tablet_meta.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/be/src/olap/tablet_meta.cpp b/be/src/olap/tablet_meta.cpp
index 5999c268e2..407d97ac4c 100644
--- a/be/src/olap/tablet_meta.cpp
+++ b/be/src/olap/tablet_meta.cpp
@@ -578,14 +578,14 @@ void TabletMeta::to_meta_pb(TabletMetaPB* tablet_meta_pb)
{
tablet_meta_pb->set_enable_unique_key_merge_on_write(_enable_unique_key_merge_on_write);
if (_enable_unique_key_merge_on_write) {
- std::set<RowsetId> rs_ids;
- for (const auto& rowset : _rs_metas) {
- rs_ids.insert(rowset->rowset_id());
+ std::set<RowsetId> stale_rs_ids;
+ for (const auto& rowset : _stale_rs_metas) {
+ stale_rs_ids.insert(rowset->rowset_id());
}
DeleteBitmapPB* delete_bitmap_pb =
tablet_meta_pb->mutable_delete_bitmap();
for (auto& [id, bitmap] : delete_bitmap().snapshot().delete_bitmap) {
auto& [rowset_id, segment_id, ver] = id;
- if (rs_ids.count(rowset_id) == 0) {
+ if (stale_rs_ids.count(rowset_id) != 0) {
continue;
}
delete_bitmap_pb->add_rowset_ids(rowset_id.to_string());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]