Do not add reference count when it is local mode. (#8979)

This commit is contained in:
SangBin Cho 2020-06-21 14:01:06 -07:00
parent 2651d2488d
commit 925e9acd66

View file

@ -1452,7 +1452,7 @@ Status CoreWorker::AllocateReturnObjects(
RAY_LOG(DEBUG) << "Creating return object " << object_ids[i]; RAY_LOG(DEBUG) << "Creating return object " << object_ids[i];
// Mark this object as containing other object IDs. The ref counter will // 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. // 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], reference_counter_->AddNestedObjectIds(object_ids[i], contained_object_ids[i],
owner_address); owner_address);
} }