master: keep dataset manager consistent when set_dataset is called with contradictory attributes

pull/605/head
Sebastien Bourdeauducq 2016-10-18 17:10:18 +08:00
parent 363a7ebe3a
commit 67ce341adf
1 changed files with 4 additions and 0 deletions

View File

@ -190,8 +190,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