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/specifications/vdrive/flags/something?a=commitdiff_plain;h=b8fb8848a281f923c4931248a639363cceefcd91;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"