From 5636af80841541ad40ac2997fd0b6eca661b4c2c Mon Sep 17 00:00:00 2001 From: Alex Wu Date: Sun, 14 Feb 2021 14:26:51 -0800 Subject: [PATCH] [hotfix] Fix mac build (#14075) * . * done? * . Co-authored-by: Alex Wu --- src/ray/core_worker/reference_count.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ray/core_worker/reference_count.cc b/src/ray/core_worker/reference_count.cc index 87400ca21..652663ecf 100644 --- a/src/ray/core_worker/reference_count.cc +++ b/src/ray/core_worker/reference_count.cc @@ -1026,7 +1026,7 @@ void ReferenceCounter::PushToLocationSubscribers(ReferenceTable::iterator it) { const auto callbacks = it->second.location_subscription_callbacks; it->second.location_subscription_callbacks.clear(); it->second.location_version++; - for (const auto callback : callbacks) { + for (const auto &callback : callbacks) { callback(it->second.locations, it->second.object_size, it->second.spilled_url, it->second.spilled_node_id, it->second.location_version); }