diff --git a/db/db_impl/db_impl_secondary.cc b/db/db_impl/db_impl_secondary.cc index 8b93f675f..e14e53e55 100644 --- a/db/db_impl/db_impl_secondary.cc +++ b/db/db_impl/db_impl_secondary.cc @@ -587,6 +587,9 @@ Status DB::OpenAsSecondary( &impl->write_controller_)); impl->column_family_memtables_.reset( new ColumnFamilyMemTablesImpl(impl->versions_->GetColumnFamilySet())); + impl->wal_in_db_path_ = + IsWalDirSameAsDBPath(&impl->immutable_db_options_); + impl->mutex_.Lock(); s = impl->Recover(column_families, true, false, false); if (s.ok()) {