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 27125e6d1d0 [fix](cloud-mow) tablet_id should use int64_t to avoid 
truncation problem when removing old delete bitmap (#43968)
27125e6d1d0 is described below

commit 27125e6d1d0aab1e43ce064434163b799a8caa18
Author: huanghaibin <huanghai...@selectdb.com>
AuthorDate: Thu Nov 14 20:29:41 2024 +0800

    [fix](cloud-mow) tablet_id should use int64_t to avoid truncation problem 
when removing old delete bitmap (#43968)
    
    tablet_id is int64_t, use int32_t may have truncation problem, which
    will lead to send wrong tablet_id to ms, and do nothing on remove old
    delete bitmap
    pick:https://github.com/apache/doris/pull/43956
---
 be/src/olap/tablet_meta.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/tablet_meta.cpp b/be/src/olap/tablet_meta.cpp
index ffbc4110c45..3b02fd972e3 100644
--- a/be/src/olap/tablet_meta.cpp
+++ b/be/src/olap/tablet_meta.cpp
@@ -1197,7 +1197,7 @@ void 
DeleteBitmap::remove_stale_delete_bitmap_from_queue(const std::vector<std::
     std::shared_lock l(stale_delete_bitmap_lock);
     //<rowset_id, start_version, end_version>
     std::vector<std::tuple<std::string, uint64_t, uint64_t>> to_delete;
-    auto tablet_id = -1;
+    int64_t tablet_id = -1;
     for (auto& version_str : vector) {
         auto it = _stale_delete_bitmap.find(version_str);
         if (it != _stale_delete_bitmap.end()) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to