Skip to content

Commit

Permalink
version_set.cc: NewFileIterator: fix auto
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed May 10, 2023
1 parent 9b6cb2b commit 8f67bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/version_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ class LevelIterator final : public InternalIterator {
// into the new file. Old range tombstone iterator is cleared.
InternalIterator* NewFileIterator() {
assert(file_index_ < flevel_->num_files);
auto file_meta = flevel_->files[file_index_];
const auto& file_meta = flevel_->files[file_index_];
if (should_sample_) {
sample_file_read_inc(file_meta.file_metadata);
}
Expand Down

0 comments on commit 8f67bd1

Please sign in to comment.