mirror of
https://github.com/wassname/ray.git
synced 2026-08-03 13:10:57 +08:00
Fix Java named actor bug (#9580)
This commit is contained in:
@@ -434,6 +434,9 @@ inline jobject NativeRayFunctionDescriptorToJavaStringList(
|
||||
|
||||
// Return an actor fullname with job id prepended if this tis a global actor.
|
||||
inline std::string GetActorFullName(bool global, std::string name) {
|
||||
if (name.empty()) {
|
||||
return "";
|
||||
}
|
||||
return global ? name
|
||||
: ::ray::CoreWorkerProcess::GetCoreWorker().GetCurrentJobId().Hex() + "-" +
|
||||
name;
|
||||
|
||||
Reference in New Issue
Block a user