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

version» Context lines:

pike.git/lib/modules/Search.pmod/Queue.pmod/MySQL.pike:101:    // If a url is forced to be indexed *while* it's being indexed,    // 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);    set_recurse(r, recurse);    }    }    else -  db->query( "insert into "+table+ +  // There's a race condition between the select query in has_uri() +  // and this query, so we ignore duplicate key errors from MySQL +  // by using the "ignore" keyword. +  db->query( "insert ignore into "+table+    " (uri,uri_md5,recurse,template) values (%s,%s,%d,%s)",    string_to_utf8((string)r),    to_md5((string)r), recurse, (template||"") );    }   }      void set_md5( Standards.URI uri, string md5 )   {    if( extra_data[(string)uri] )    extra_data[(string)uri]->md5 = md5;