1
0

storage: take the DB lock when writing to disk.

This commit is contained in:
ThomasV
2020-02-03 17:08:34 +01:00
parent 73e656522e
commit 63963323be
2 changed files with 1 additions and 6 deletions

View File

@@ -61,9 +61,6 @@ class JsonDB(Logger):
return True
return False
def commit(self):
pass
@locked
def dump(self):
return json.dumps(self.data, indent=4, sort_keys=True, cls=JsonDBJsonEncoder)