diff --git a/db/db_impl/db_impl_open.cc b/db/db_impl/db_impl_open.cc index ec5fa6796..4a79280ae 100644 --- a/db/db_impl/db_impl_open.cc +++ b/db/db_impl/db_impl_open.cc @@ -1274,7 +1274,7 @@ Status DBImpl::RecoverLogFiles(const std::vector& wal_numbers, std::unique_ptr wal_deletion; if (flushed) { - wal_deletion = std::make_unique(); + wal_deletion = std::unique_ptr(new VersionEdit()); if (immutable_db_options_.track_and_verify_wals_in_manifest) { wal_deletion->DeleteWalsBefore(max_wal_number + 1); }