Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
airborne12 committed Dec 19, 2024
1 parent 0637e25 commit 365ffff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions be/src/olap/rowset/segment_v2/segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ Status Segment::load_pk_index_and_bf(OlapReaderStatistics* index_load_stats) {
}

Status Segment::load_index(OlapReaderStatistics* stats) {
return _load_index_once.call([this] {
return _load_index_once.call([this, stats] {
if (_tablet_schema->keys_type() == UNIQUE_KEYS && _pk_index_meta != nullptr) {
_pk_index_reader = std::make_unique<PrimaryKeyIndexReader>();
RETURN_IF_ERROR(_pk_index_reader->parse_index(_file_reader, *_pk_index_meta, stats));
Expand Down Expand Up @@ -1122,7 +1122,8 @@ Status Segment::seek_and_read_by_rowid(const TabletSchema& schema, SlotDescripto
.use_page_cache = !config::disable_storage_page_cache,
.file_reader = file_reader().get(),
.stats = &stats,
.io_ctx = io::IOContext {.reader_type = ReaderType::READER_QUERY},
.io_ctx = io::IOContext {.reader_type = ReaderType::READER_QUERY,
.file_cache_stats = &stats.file_cache_stats},
};
std::vector<segment_v2::rowid_t> single_row_loc {row_id};
if (!slot->column_paths().empty()) {
Expand Down

0 comments on commit 365ffff

Please sign in to comment.