Skip to content

Commit

Permalink
[core] Remove "plasma promotion" for serialized ObjectRefs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanie-wang authored Oct 1, 2021
1 parent b0a5564 commit c052395
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion python/ray/_raylet.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,6 @@ cdef class CoreWorker:
CObjectID c_object_id = object_ref.native()
CAddress c_owner_address = CAddress()
c_string serialized_object_status
CCoreWorkerProcess.GetCoreWorker().PromoteObjectToPlasma(c_object_id)
CCoreWorkerProcess.GetCoreWorker().GetOwnershipInfo(
c_object_id, &c_owner_address, &serialized_object_status)
return (object_ref,
Expand Down
1 change: 1 addition & 0 deletions src/ray/core_worker/core_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ void CoreWorker::PutObjectIntoPlasma(const RayObject &object, const ObjectID &ob
}

void CoreWorker::PromoteObjectToPlasma(const ObjectID &object_id) {
// TODO(swang): Remove.
auto value = memory_store_->GetOrPromoteToPlasma(object_id);
if (value) {
PutObjectIntoPlasma(*value, object_id);
Expand Down

0 comments on commit c052395

Please sign in to comment.