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

version» Context lines:

pike.git/lib/modules/Search.pmod/Queue.pmod/MySQL.pike:124:    if( extra_data[(string)uri] )    extra_data[(string)uri]->recurse = (string)recurse;    db->query( "update "+table+    " set recurse=%d WHERE uri_md5=%s", recurse, to_md5((string)uri));   }      mapping(string:mapping(string:string)) extra_data = ([]);   mapping get_extra( Standards.URI uri )   {    if( extra_data[(string)uri] ) -  return extra_data[(string)uri]; +  return extra_data[(string)uri] || ([ ]);    array r = db->query( "SELECT md5,recurse,stage,template "    "FROM "+table+" WHERE uri_md5=%s", to_md5((string)uri) ); -  if( sizeof( r ) ) -  return r[0]; -  +  return (sizeof(r) && r[0]) || ([ ]);   }      static int empty_count;   static int retry_count;      // cache, for performance reasons.   static array possible=({});   static int p_c;      int|Standards.URI get()