From: Daira Hopwood Date: Mon, 14 Dec 2015 15:17:39 +0000 (+0000) Subject: Split scanning into a separate method so that we can call it periodically. X-Git-Url: https://git.rkrishnan.org/reliability?a=commitdiff_plain;h=a7cd32832f3493d4105cde716fd4364bf899a6e3;p=tahoe-lafs%2Ftahoe-lafs.git Split scanning into a separate method so that we can call it periodically. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 353b8fac..2b10d316 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -234,6 +234,9 @@ class Uploader(QueueMixin): def start_scanning(self): self._log("start_scanning") self.is_ready = True + return self._full_scan() + + def _full_scan(self): self._pending = self._db.get_all_relpaths() self._log("all_files %r" % (self._pending)) d = self._scan(u"")