diff --git a/db/db_impl.cc b/db/db_impl.cc index dc8597f81..d7de69d14 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -574,10 +574,6 @@ Status DBImpl::SetDBOptions( env_options_for_compaction_ = env_->OptimizeForCompactionTableWrite( env_options_for_compaction_, immutable_db_options_); - env_options_for_compaction_.bytes_per_sync - = mutable_db_options_.bytes_per_sync; - env_->OptimizeForCompactionTableWrite(env_options_for_compaction_, - immutable_db_options_); write_thread_.EnterUnbatched(&w, &mutex_); if (total_log_size_ > GetMaxTotalWalSize() || wal_changed) { Status purge_wal_status = SwitchWAL(&write_context);