Skip to content

Commit

Permalink
Fix env_options_for_read spelling in CompactionJob
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebook#5380

Differential Revision: D15563386

Pulled By: sagar0

fbshipit-source-id: 8b26aef47cfc40ff8016daf815582f21cdd40df2
  • Loading branch information
sagar0 authored and facebook-github-bot committed May 30, 2019
1 parent cf7a20d commit 6ff643a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions db/compaction_job.cc
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ CompactionJob::CompactionJob(
db_options_(db_options),
env_options_(env_options),
env_(db_options.env),
env_optiosn_for_read_(
env_options_for_read_(
env_->OptimizeForCompactionTableRead(env_options, db_options_)),
versions_(versions),
shutting_down_(shutting_down),
Expand Down Expand Up @@ -836,7 +836,7 @@ void CompactionJob::ProcessKeyValueCompaction(SubcompactionState* sub_compact) {
// Although the v2 aggregator is what the level iterator(s) know about,
// the AddTombstones calls will be propagated down to the v1 aggregator.
std::unique_ptr<InternalIterator> input(versions_->MakeInputIterator(
sub_compact->compaction, &range_del_agg, env_optiosn_for_read_));
sub_compact->compaction, &range_del_agg, env_options_for_read_));

AutoThreadOperationStageUpdater stage_updater(
ThreadStatus::STAGE_COMPACTION_PROCESS_KV);
Expand Down
2 changes: 1 addition & 1 deletion db/compaction_job.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class CompactionJob {

Env* env_;
// env_option optimized for compaction table reads
EnvOptions env_optiosn_for_read_;
EnvOptions env_options_for_read_;
VersionSet* versions_;
const std::atomic<bool>* shutting_down_;
const SequenceNumber preserve_deletes_seqnum_;
Expand Down

0 comments on commit 6ff643a

Please sign in to comment.