Skip to content

Commit

Permalink
Just fix PartitionedIndexReader
Browse files Browse the repository at this point in the history
  • Loading branch information
pdillinger committed Jun 12, 2024
1 parent 961468f commit 96badde
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions table/block_based/partitioned_index_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,10 @@ InternalIteratorBase<IndexValue>* PartitionIndexReader::NewIterator(
index_value_is_full(), false /* block_contents_pinned */,
user_defined_timestamps_persisted()));
} else {
ReadOptions ro;
ro.fill_cache = read_options.fill_cache;
ro.deadline = read_options.deadline;
ro.io_timeout = read_options.io_timeout;
ro.adaptive_readahead = read_options.adaptive_readahead;
ro.async_io = read_options.async_io;
ro.rate_limiter_priority = read_options.rate_limiter_priority;
ro.verify_checksums = read_options.verify_checksums;
ro.io_activity = read_options.io_activity;
ReadOptions ro{read_options};
// FIXME? Possible regression seen in prefetch_test if this field is
// propagated
ro.readahead_size = ReadOptions{}.readahead_size;

// We don't return pinned data from index blocks, so no need
// to set `block_contents_pinned`.
Expand Down

0 comments on commit 96badde

Please sign in to comment.