added crawl is initializing crawl status msg

This commit is contained in:
Matt Wells 2013-10-29 13:24:54 -07:00
parent 1b79c5696e
commit f06e1aaa73

View File

@ -2753,12 +2753,9 @@ bool printCrawlBotPage2 ( TcpSocket *socket ,
// if spiderdb is empty for this coll, then no url
// has been added to spiderdb yet.. either seed or spot
Rdb *rdb = g_spiderdb.getRdb();
RdbBase *base = rdb->getBase ( cx->m_collnum );
long recCount = 0;
if ( base ) recCount = base->getNumTotalRecs();
if ( recCount == 0 )
ss = "No urls are available to crawl.";
CrawlInfo *cg = &cx->m_globalCrawlInfo;
if ( cg->m_pageDownloadAttempts == 0 )
ss = "Crawl is initializing.";
CrawlInfo *ci = &cx->m_localCrawlInfo;
long sentAlert = (long)ci->m_sentCrawlDoneAlert;