summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-07-30 21:35:29 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-07-30 21:35:29 +0200
commit2497c100de34c113304227f72015bfb3755854a3 (patch)
treee382f92368a37d623f5aea5d02609a13a1c338d8 /module/FileDatabase.py
parentrestart working and client information (diff)
downloadpyload-2497c100de34c113304227f72015bfb3755854a3.tar.xz
daily commit
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index 6cc8d10ff..53e50bb72 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -82,6 +82,11 @@ class FileHandler:
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):