diff --git a/db/wal_manager.cc b/db/wal_manager.cc index 2b384e7d20..79055b5624 100644 --- a/db/wal_manager.cc +++ b/db/wal_manager.cc @@ -334,8 +334,8 @@ Status WalManager::GetSortedWalsOfType(const std::string& path, return s; } - log_files.push_back(std::unique_ptr( - new LogFileImpl(number, log_type, sequence, size_bytes))); + log_files.emplace_back( + new LogFileImpl(number, log_type, sequence, size_bytes)); } } std::sort(