[Core] Preliminary implementation of ownership-based object directory (#9735)

This commit is contained in:
Zhuohan Li
2020-08-11 15:04:13 -07:00
committed by GitHub
parent 221fdc0774
commit a6fed4820e
44 changed files with 882 additions and 175 deletions
+3 -2
View File
@@ -761,8 +761,9 @@ cdef class CoreWorker:
c_object_id[0] = object_ref.native()
with nogil:
check_status(CCoreWorkerProcess.GetCoreWorker().Create(
metadata, data_size,
c_object_id[0], data))
metadata, data_size, c_object_id[0],
CCoreWorkerProcess.GetCoreWorker().GetRpcAddress(),
data))
# If data is nullptr, that means the ObjectRef already existed,
# which we ignore.
+1
View File
@@ -161,6 +161,7 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
CRayStatus Create(const shared_ptr[CBuffer] &metadata,
const size_t data_size,
const CObjectID &object_id,
const CAddress &owner_address,
shared_ptr[CBuffer] *data)
CRayStatus Seal(const CObjectID &object_id, c_bool pin_object)
CRayStatus Get(const c_vector[CObjectID] &ids, int64_t timeout_ms,