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

commit 16b0523f59cb6c5c0c91d5c1757fd2c64b0385e7
Author: Kang <kxiao.ti...@gmail.com>
AuthorDate: Tue Aug 6 12:48:34 2024 +0800

    [fix](index) fix inverted index compound file entry size int32 overflow 
(#38891)
    
    change FileInfo::filesize from int32_t to int64_t to avoid overflow
---
 be/src/olap/rowset/segment_v2/inverted_index_file_writer.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/olap/rowset/segment_v2/inverted_index_file_writer.h 
b/be/src/olap/rowset/segment_v2/inverted_index_file_writer.h
index 0d82504c07f..b9f9b983e44 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index_file_writer.h
+++ b/be/src/olap/rowset/segment_v2/inverted_index_file_writer.h
@@ -40,7 +40,7 @@ using InvertedIndexDirectoryMap =
 class FileInfo {
 public:
     std::string filename;
-    int32_t filesize;
+    int64_t filesize;
 };
 
 class InvertedIndexFileWriter {
@@ -83,4 +83,4 @@ private:
     io::FileWriterPtr _idx_v2_writer;
 };
 } // namespace segment_v2
-} // namespace doris
\ No newline at end of file
+} // namespace doris


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

Reply via email to