mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 19:58:25 +08:00
master: ensure same dataset is in broadcast and local when mutating
This commit is contained in:
parent
5ecfa8197f
commit
363a7ebe3a
@ -198,6 +198,8 @@ class DatasetManager:
|
|||||||
if key in self.local:
|
if key in self.local:
|
||||||
target = self.local[key]
|
target = self.local[key]
|
||||||
if key in self.broadcast.read:
|
if key in self.broadcast.read:
|
||||||
|
if target is not None:
|
||||||
|
assert target is self.broadcast.read[key][1]
|
||||||
target = self.broadcast[key][1]
|
target = self.broadcast[key][1]
|
||||||
if target is None:
|
if target is None:
|
||||||
raise KeyError("Cannot mutate non-existing dataset")
|
raise KeyError("Cannot mutate non-existing dataset")
|
||||||
|
Loading…
Reference in New Issue
Block a user