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
main
Changli Gao 8 years ago committed by Facebook Github Bot
parent fe395fb63d
commit 9f246298e2
  1. 2
      db/event_helpers.cc

@ -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

Loading…
Cancel
Save