From: David Stainton Date: Thu, 17 Dec 2015 23:34:05 +0000 (+0200) Subject: Only perform full scan if pending set is empty X-Git-Url: https://git.rkrishnan.org/(%5B%5E?a=commitdiff_plain;h=b6062e7ddbe4b152f2104fcccb303f54569698ca;p=tahoe-lafs%2Ftahoe-lafs.git Only perform full scan if pending set is empty --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 87655951..abb0a1ff 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -258,7 +258,8 @@ class Uploader(QueueMixin): def _periodic_full_scan(self): self.periodic_callid = self._clock.callLater(self._periodic_full_scan_duration, self._periodic_full_scan) - self._full_scan() + if len(self._pending) == 0: + self._full_scan() def _full_scan(self): print "FULL SCAN"