Skip to content

Commit

Permalink
[fix](index) fix inverted index compound file entry size int32 overfl…
Browse files Browse the repository at this point in the history
…ow (#38891)

change FileInfo::filesize from int32_t to int64_t to avoid overflow
  • Loading branch information
xiaokang authored and dataroaring committed Aug 7, 2024
1 parent 7884204 commit 16b0523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/olap/rowset/segment_v2/inverted_index_file_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ using InvertedIndexDirectoryMap =
class FileInfo {
public:
std::string filename;
int32_t filesize;
int64_t filesize;
};

class InvertedIndexFileWriter {
Expand Down Expand Up @@ -83,4 +83,4 @@ class InvertedIndexFileWriter {
io::FileWriterPtr _idx_v2_writer;
};
} // namespace segment_v2
} // namespace doris
} // namespace doris

0 comments on commit 16b0523

Please sign in to comment.