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/?a=commitdiff_plain;h=9e81761f8af2cf1de03705e2927abd438009cc7f;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"