Repository :
http://git.fedorahosted.org/cgit/
On branch : master
---------------------------------------------------------------
commit c790e33968e6d489a6b9bf16525448067441fa33
Author: Adrian Reber <adrian(a)lisas.de>
Date: Wed Aug 7 07:08:03 2013 -0500
crawler: fix crawler --stopid now that the host list is sorted
We can't break out of the host loop early if we've passed stopid,
because the list isn't sorted by ID anymore, but by
last_crawl_duration.
Fix from Adrian.
---------------------------------------------------------------
server/crawler | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/crawler b/server/crawler
index efd32a0..3b2aacf 100755
--- a/server/crawler
+++ b/server/crawler
@@ -130,7 +130,7 @@ def doit():
i += 1
try:
if h.id < options.startid: continue
- if h.id >= options.stopid: break
+ if h.id >= options.stopid: continue
master.wait_for_available_slot()
if not (h.admin_active and h.user_active and h.site.user_active and
h.site.admin_active):