pike.git / lib / modules / Search.pmod / Queue.pmod / MySQL.pike

version» Context lines:

pike.git/lib/modules/Search.pmod/Queue.pmod/MySQL.pike:85:       r->path = combine_path(r->path);       if( force || check_link(uri, allow, deny) )    {    if(has_uri(r))    {    // FIXME:    // Race condition:    // If a url is forced to be indexed *while* it's being indexed, -  // and it's changed since the indexnig started, setting the stage +  // and it's changed since the indexing started, setting the stage    // to 0 here might be worthless, since it could be overwritten before    // it's fetched again.    if(force)    set_stage(r, 0);    }    else    db->query( "insert into "+table+    " (uri,uri_md5,recurse,template) values (%s,%s,%d,%s)",    string_to_utf8((string)r),    to_md5((string)r), recurse, (template||"") );