Skip to content

Commit 925e9ac

Browse files
committed
Do not add reference count when it is local mode. (#8979)
1 parent 2651d24 commit 925e9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ray/core_worker/core_worker.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ Status CoreWorker::AllocateReturnObjects(
14521452
RAY_LOG(DEBUG) << "Creating return object " << object_ids[i];
14531453
// Mark this object as containing other object IDs. The ref counter will
14541454
// keep the inner IDs in scope until the outer one is out of scope.
1455-
if (!contained_object_ids[i].empty()) {
1455+
if (!contained_object_ids[i].empty() && !options_.is_local_mode) {
14561456
reference_counter_->AddNestedObjectIds(object_ids[i], contained_object_ids[i],
14571457
owner_address);
14581458
}

0 commit comments

Comments
 (0)