From e62986260f12abad62d84182d106daeb147168e7 Mon Sep 17 00:00:00 2001 From: Sagar Vemuri Date: Thu, 30 May 2019 14:01:44 -0700 Subject: [PATCH] Fix env_options_for_read spelling in CompactionJob Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/5380 Differential Revision: D15563386 Pulled By: sagar0 fbshipit-source-id: 8b26aef47cfc40ff8016daf815582f21cdd40df2 --- db/compaction_job.cc | 4 ++-- db/compaction_job.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/compaction_job.cc b/db/compaction_job.cc index 91c7f437a..9e5d46f87 100644 --- a/db/compaction_job.cc +++ b/db/compaction_job.cc @@ -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), @@ -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 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); diff --git a/db/compaction_job.h b/db/compaction_job.h index a37c54de8..0751727d7 100644 --- a/db/compaction_job.h +++ b/db/compaction_job.h @@ -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* shutting_down_; const SequenceNumber preserve_deletes_seqnum_;