mirror of https://github.com/facebook/rocksdb.git
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:
parent
f799c73d28
commit
01f2edd145
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue