Replace push_back by emplace_back in wal manager (#10805)

Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/10805

Reviewed By: ajkr

Differential Revision: D52424928

Pulled By: hx235

fbshipit-source-id: 548e3304ca721a3907be3696d12735929aca8490
This commit is contained in:
darionyaphet 2023-12-27 10:40:33 -08:00 committed by Facebook GitHub Bot
parent f799c73d28
commit 01f2edd145
1 changed files with 2 additions and 2 deletions

View File

@ -334,8 +334,8 @@ Status WalManager::GetSortedWalsOfType(const std::string& path,
return s;
}
log_files.push_back(std::unique_ptr<LogFile>(
new LogFileImpl(number, log_type, sequence, size_bytes)));
log_files.emplace_back(
new LogFileImpl(number, log_type, sequence, size_bytes));
}
}
std::sort(