pike.git / lib / modules / Search.pmod / Utils.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Utils.pmod:1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Utils.pmod,v 1.38 2003/08/14 14:22:54 mattias Exp $ + // $Id: Utils.pmod,v 1.39 2003/08/15 13:58:48 mattias Exp $      #if !constant(report_error)   #define report_error werror   #define report_debug werror   #define report_warning werror   #endif      #ifdef SEARCH_DEBUG   # define WERR(X) report_debug("search: "+(X)+"\n");   #else
pike.git/lib/modules/Search.pmod/Utils.pmod:525: Inside #if constant (roxen)
   WERR("Running scheduler event.");       int t = time();       WERR(sizeof(crawl_queue)+" profiles in crawl queue.");    foreach(indices(crawl_queue), int id) {    if(crawl_queue[id]>t || !db_profiles[id]) continue;    object dbp = db_profiles[id];    if(dbp && dbp->ready_to_crawl()) {    WERR("Scheduler starts crawling "+id); -  dbp->action_reindex(); +  dbp->recrawl();    entry_queue = ([]);    }    }       WERR(sizeof(entry_queue)+" profiles in entry queue.");    foreach(indices(entry_queue), int id) {    if(entry_queue[id]>t || !db_profiles[id]) continue;    object dbp = db_profiles[id];    if(dbp && dbp->ready_to_crawl()) {    WERR("Scheduler starts crawling "+id);
pike.git/lib/modules/Search.pmod/Utils.pmod:572:    WERR("Running scheduler event.");       int t = time();       WERR(sizeof(crawl_queue)+" profiles in crawl queue.");    foreach(indices(crawl_queue), int id) {    if(crawl_queue[id]>t || !db_profiles[id]) continue;    object dbp = db_profiles[id];    if(dbp && dbp->ready_to_crawl()) {    WERR("Scheduler starts crawling "+id); +  dbp->recrawl(); +  entry_queue = ([]); +  } +  } +  +  WERR(sizeof(crawl_queue)+" profiles in crawl queue."); +  foreach(indices(crawl_queue), int id) { +  if(crawl_queue[id]>t || !db_profiles[id]) continue; +  object dbp = db_profiles[id]; +  if(dbp && dbp->ready_to_crawl()) { +  WERR("Scheduler starts crawling "+id);    dbp->start_indexer();    }    }       WERR(sizeof(compact_queue)+" profiles in compact queue.");    foreach(indices(compact_queue), int id) {    if(compact_queue[id]>t || !db_profiles[id]) continue;    db_profiles[id]->start_compact();    }