MCPcopy Index your code
hub / github.com/pyload/pyload / syncSave

Method syncSave

module/database/FileDatabase.py:77–87  ·  view source on GitHub ↗

saves all data to backend and waits until all data are written

(self)

Source from the content-addressed store, hash-verified

75
76 #----------------------------------------------------------------------
77 def syncSave(self):
78 """saves all data to backend and waits until all data are written"""
79 pyfiles = self.cache.values()
80 for pyfile in pyfiles:
81 pyfile.sync()
82
83 pypacks = self.packageCache.values()
84 for pypack in pypacks:
85 pypack.sync()
86
87 self.db.syncSave()
88
89 @lock
90 def getCompleteData(self, queue=1):

Callers 1

shutdownMethod · 0.45

Calls 2

valuesMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected