Only perform full scan if pending set is empty
authorDavid Stainton <dstainton415@gmail.com>
Thu, 17 Dec 2015 23:34:05 +0000 (01:34 +0200)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 5 Feb 2016 22:13:37 +0000 (22:13 +0000)
src/allmydata/frontends/magic_folder.py

index 87655951b7b2cd84c90bbb612b1004f9875d8a5e..abb0a1ff5e4d77252af98b29d0b8dde77a00933f 100644 (file)
@@ -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"