mirror of https://github.com/facebook/rocksdb.git
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:
parent
fe395fb63d
commit
9f246298e2
|
@ -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…
Reference in New Issue