You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by da...@apache.org on 2022/10/20 13:53:22 UTC
[doris] branch master updated: [feature-wip](unique-key-merge-on-write) fix that delete the bitmap of stale rowset (#13393)
This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 7109cbfe6f [feature-wip](unique-key-merge-on-write) fix that delete the bitmap of stale rowset (#13393)
7109cbfe6f is described below
commit 7109cbfe6f183c8005afe7b2c6c1f4191ba9a10f
Author: Xin Liao <li...@126.com>
AuthorDate: Thu Oct 20 21:53:13 2022 +0800
[feature-wip](unique-key-merge-on-write) fix that delete the bitmap of stale rowset (#13393)
---
be/src/olap/tablet_meta.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/be/src/olap/tablet_meta.cpp b/be/src/olap/tablet_meta.cpp
index 005336ad03..6a3555575c 100644
--- a/be/src/olap/tablet_meta.cpp
+++ b/be/src/olap/tablet_meta.cpp
@@ -691,9 +691,12 @@ void TabletMeta::delete_stale_rs_meta_by_version(const Version& version) {
auto it = _stale_rs_metas.begin();
while (it != _stale_rs_metas.end()) {
if ((*it)->version() == version) {
+ if (_enable_unique_key_merge_on_write) {
+ // remove rowset delete bitmap
+ delete_bitmap().remove({(*it)->rowset_id(), 0, 0},
+ {(*it)->rowset_id(), UINT32_MAX, 0});
+ }
it = _stale_rs_metas.erase(it);
- // remove rowset delete bitmap
- delete_bitmap().remove({(*it)->rowset_id(), 0, 0}, {(*it)->rowset_id(), UINT32_MAX, 0});
} else {
it++;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org