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 2024/09/03 08:05:42 UTC
(doris) 03/04: [fix](build index)Only get file size for inverted index (#39965)
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 cf5624c5441a70c10d9b6d9ade1f1249b1ba0a56
Author: qiye <ji...@gmail.com>
AuthorDate: Thu Aug 29 12:05:52 2024 +0800
[fix](build index)Only get file size for inverted index (#39965)
close #39963
Master will not have the warning logs due to `file_system.h` removed the log line.
But the bug still exists.
---
be/src/olap/rowset/beta_rowset.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/be/src/olap/rowset/beta_rowset.cpp b/be/src/olap/rowset/beta_rowset.cpp
index b269051e43f..209aca7fb03 100644
--- a/be/src/olap/rowset/beta_rowset.cpp
+++ b/be/src/olap/rowset/beta_rowset.cpp
@@ -83,6 +83,10 @@ Status BetaRowset::get_inverted_index_size(size_t* index_size) {
if (_schema->get_inverted_index_storage_format() == InvertedIndexStorageFormatPB::V1) {
auto indices = _schema->indexes();
for (auto& index : indices) {
+ // only get file_size for inverted index
+ if (index.index_type() != IndexType::INVERTED) {
+ continue;
+ }
for (int seg_id = 0; seg_id < num_segments(); ++seg_id) {
auto seg_path = DORIS_TRY(segment_path(seg_id));
int64_t file_size = 0;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org