forked from M-Labs/artiq
1
0
Fork 0

Revert "worker_db: Only warn on repeated archive read if dataset changed"

Breaks numpy arrays.

This reverts commit 141fcaaa8a.
This commit is contained in:
Sebastien Bourdeauducq 2018-07-13 10:41:06 +08:00
parent 46fb5adac3
commit ea7f925852
1 changed files with 3 additions and 3 deletions

View File

@ -227,9 +227,9 @@ class DatasetManager:
else:
data = self.ddb.get(key)
if archive:
if self.archive.get(key, data) != data:
logger.warning("Older value of dataset '%s' is already in "
"archive, overwriting", key, stack_info=True)
if key in self.archive:
logger.warning("Dataset '%s' is already in archive, "
"overwriting", key, stack_info=True)
self.archive[key] = data
return data