Add entries to in-memory store on Put() (#7085)

This commit is contained in:
Edward Oakes
2020-03-04 10:17:27 -08:00
committed by GitHub
parent aa4861c2a0
commit 0abcca258f
19 changed files with 186 additions and 196 deletions
+4
View File
@@ -192,6 +192,10 @@ class SerializationContext:
# UniqueIDs are serialized as
# (class name, (unique bytes,)).
outer_id = context.get_outer_object_id()
# outer_id is None in the case that this ObjectID was closed
# over in a function or pickled directly using pickle.dumps().
if outer_id is None:
outer_id = ray.ObjectID.nil()
worker.core_worker.deserialize_and_register_object_id(
obj_id[1][0], outer_id, owner_id[1][0], owner_address)
return deserialized_object_id