mirror of
https://github.com/wassname/ray.git
synced 2026-07-05 18:48:25 +08:00
[Core] Expand job ID to 4 bytes by removing object flag bytes. (#10187)
This commit is contained in:
@@ -34,7 +34,7 @@ void AbstractRayRuntime::Put(std::shared_ptr<msgpack::sbuffer> data,
|
||||
|
||||
ObjectID AbstractRayRuntime::Put(std::shared_ptr<msgpack::sbuffer> data) {
|
||||
ObjectID object_id =
|
||||
ObjectID::ForPut(worker_->GetCurrentTaskID(), worker_->GetNextPutIndex());
|
||||
ObjectID::FromIndex(worker_->GetCurrentTaskID(), worker_->GetNextPutIndex());
|
||||
Put(data, object_id);
|
||||
return object_id;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ ObjectID LocalModeTaskSubmitter::Submit(const InvocationSpec &invocation, TaskTy
|
||||
const TaskID actor_creation_task_id =
|
||||
TaskID::ForActorCreationTask(invocation.actor_id);
|
||||
const ObjectID actor_creation_dummy_object_id =
|
||||
ObjectID::ForTaskReturn(actor_creation_task_id, 1);
|
||||
ObjectID::FromIndex(actor_creation_task_id, 1);
|
||||
builder.SetActorTaskSpec(invocation.actor_id, actor_creation_dummy_object_id,
|
||||
ObjectID(), invocation.actor_counter);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user