From 2497c100de34c113304227f72015bfb3755854a3 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 30 Jul 2010 21:35:29 +0200 Subject: daily commit --- module/FileDatabase.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'module/FileDatabase.py') diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 6cc8d10ff..53e50bb72 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -81,6 +81,11 @@ class FileHandler: """saves all data to backend""" self.db.commit() + #---------------------------------------------------------------------- + def syncSave(self): + """saves all data to backend and waits until all data are written""" + self.db.syncSave() + #---------------------------------------------------------------------- def getCompleteData(self, queue=1): """gets a complete data representation""" @@ -452,6 +457,10 @@ class FileDatabaseBackend(Thread): @async def commit(self): self.conn.commit() + + @queue + def syncSave(self): + self.conn.commit() @queue def getPackage(self, id): -- cgit v1.2.3