mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:08:13 +08:00
Do not add reference count when it is local mode. (#8979)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user