projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be3bc8
)
Only perform full scan if pending set is empty
author
David Stainton
<dstainton415@gmail.com>
Thu, 17 Dec 2015 23:34:05 +0000
(
01:34
+0200)
committer
Daira Hopwood
<daira@jacaranda.org>
Fri, 5 Feb 2016 22:13:37 +0000
(22:13 +0000)
src/allmydata/frontends/magic_folder.py
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 87655951b7b2cd84c90bbb612b1004f9875d8a5e..abb0a1ff5e4d77252af98b29d0b8dde77a00933f 100644
(file)
--- 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"