Skip to content

Commit

Permalink
Do not add reference count when it is local mode. (ray-project#8979)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkooo567 committed Jun 21, 2020
1 parent 2651d24 commit 925e9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ray/core_worker/core_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ Status CoreWorker::AllocateReturnObjects(
RAY_LOG(DEBUG) << "Creating return object " << object_ids[i];
// Mark this object as containing other object IDs. The ref counter will
// keep the inner IDs in scope until the outer one is out of scope.
if (!contained_object_ids[i].empty()) {
if (!contained_object_ids[i].empty() && !options_.is_local_mode) {
reference_counter_->AddNestedObjectIds(object_ids[i], contained_object_ids[i],
owner_address);
}
Expand Down

0 comments on commit 925e9ac

Please sign in to comment.