Fix clang-tidy performance-inefficient-vector-operation warnings

This commit is contained in:
Tim Wojtulewicz 2025-04-25 13:56:08 -07:00
parent b8e28abb97
commit 6196950567
4 changed files with 5 additions and 0 deletions

View file

@ -678,6 +678,7 @@ void Manager::DoTerminate() {
iosource_mgr->UnregisterFd(bstate->loggerQueue->FlareFd(), this);
vector<string> stores_to_close;
stores_to_close.reserve(data_stores.size());
for ( auto& x : data_stores )
stores_to_close.push_back(x.first);