From 5d184f8061dcfe064691f082e04f9cd2b3a021a1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 18 Oct 2016 17:10:18 +0800 Subject: [PATCH] master: keep dataset manager consistent when set_dataset is called with contradictory attributes --- artiq/master/worker_db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/master/worker_db.py b/artiq/master/worker_db.py index 29d4f11c7..f0d87c086 100644 --- a/artiq/master/worker_db.py +++ b/artiq/master/worker_db.py @@ -196,8 +196,12 @@ class DatasetManager: broadcast = True if broadcast: self.broadcast[key] = persist, value + elif key in self.broadcast.read: + del self.broadcast[key] if save: self.local[key] = value + elif key in self.local: + del self.local[key] def mutate(self, key, index, value): target = None