Performance: Iterate vector by reference

Summary: Closes https://github.com/facebook/rocksdb/pull/1763

Differential Revision: D4398796

Pulled By: yiwu-arbug

fbshipit-source-id: b82636d
This commit is contained in:
Changli Gao 2017-01-11 10:38:07 -08:00 committed by Facebook Github Bot
parent fe395fb63d
commit 9f246298e2
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ void EventHelpers::LogAndNotifyTableFileDeletion(
info.job_id = job_id;
info.file_path = file_path;
info.status = status;
for (auto listener : listeners) {
for (auto& listener : listeners) {
listener->OnTableFileDeleted(info);
}
#endif // !ROCKSDB_LITE