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:
1077826
)
crawler: load state from the pickle in init, rather than waiting until startService...
author
Brian Warner
<warner@lothar.com>
Sat, 21 Feb 2009 04:57:20 +0000
(21:57 -0700)
committer
Brian Warner
<warner@lothar.com>
Sat, 21 Feb 2009 04:57:20 +0000
(21:57 -0700)
src/allmydata/storage/crawler.py
patch
|
blob
|
history
diff --git
a/src/allmydata/storage/crawler.py
b/src/allmydata/storage/crawler.py
index 80c23257bfc67d0708a1afa2329806b337296dfa..d6c342fb20c8b0bc2ecfb3f94d945b89140185f9 100644
(file)
--- a/
src/allmydata/storage/crawler.py
+++ b/
src/allmydata/storage/crawler.py
@@
-74,6
+74,7
@@
class ShareCrawler(service.MultiService):
self.bucket_cache = (None, [])
self.current_sleep_time = None
self.next_wake_time = None
+ self.load_state()
def get_progress(self):
"""I return information about how much progress the crawler is
@@
-182,7
+183,6
@@
class ShareCrawler(service.MultiService):
fileutil.move_into_place(tmpfile, self.statefile)
def startService(self):
- self.load_state()
# arrange things to look like we were just sleeping, so
# status/progress values work correctly
self.sleeping_between_cycles = True