This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 877fca4e97a branch-4.0: [Fix](Olap)Fixs uninitialized group_data_size 
in CompactionSampleInfo #57523 (#58650)
877fca4e97a is described below

commit 877fca4e97affae246878da92cd257df5754ca40
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Dec 3 15:18:20 2025 +0800

    branch-4.0: [Fix](Olap)Fixs uninitialized group_data_size in 
CompactionSampleInfo #57523 (#58650)
    
    Cherry-picked from #57523
    
    Co-authored-by: ivin <[email protected]>
---
 be/src/olap/iterators.h | 2 +-
 be/src/olap/merger.cpp  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/olap/iterators.h b/be/src/olap/iterators.h
index 2c051d9a2c1..7c38c52eb2e 100644
--- a/be/src/olap/iterators.h
+++ b/be/src/olap/iterators.h
@@ -134,7 +134,7 @@ public:
 struct CompactionSampleInfo {
     int64_t bytes = 0;
     int64_t rows = 0;
-    int64_t group_data_size;
+    int64_t group_data_size = 0;
 };
 
 struct BlockWithSameBit {
diff --git a/be/src/olap/merger.cpp b/be/src/olap/merger.cpp
index 62077b9dd7e..335db7b2397 100644
--- a/be/src/olap/merger.cpp
+++ b/be/src/olap/merger.cpp
@@ -477,7 +477,7 @@ Status Merger::vertical_merge_rowsets(BaseTabletSPtr 
tablet, ReaderType reader_t
             tablet->tablet_id(), dst_rowset_writer->context().tablet_path, 
reader_type);
     {
         std::unique_lock<std::mutex> lock(tablet->sample_info_lock);
-        tablet->sample_infos.resize(column_groups.size(), {0, 0, 0});
+        tablet->sample_infos.resize(column_groups.size());
     }
     // compact group one by one
     for (auto i = 0; i < column_groups.size(); ++i) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to