pike.git / lib / modules / Sql.pmod / pgsql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:106:   private Thread.Condition waitforauthready;   final Thread.Mutex _shortmux;   final Thread.Condition _readyforcommit;   final int _waittocommit, _readyforquerycount;      private string _sprintf(int type, void|mapping flags) {    string res=UNDEFINED;    switch(type) {    case 'O':    res=sprintf(DRIVERNAME"(%s@%s:%d/%s,%d,%d)", -  user,_host,_port,database,c?->socket?->query_fd(),backendpid); +  user,_host,_port,database,c&&c->socket?->query_fd(),backendpid);    break;    }    return res;   }      //! @decl void create()   //! @decl void create(string host, void|string database, void|string user,@   //! void|string password, void|mapping(string:mixed) options)   //!   //! With no arguments, this function initialises (reinitialises if a
pike.git/lib/modules/Sql.pmod/pgsql.pike:574:   private void preplastmessage(mapping(string:string) msgresponse) {    lastmessage=({    sprintf("%s %s:%s %s\n (%s:%s:%s)",    msgresponse.S,msgresponse.C,msgresponse.P||"",    msgresponse.M,msgresponse.F||"",msgresponse.R||"",    msgresponse.L||"")});   }      private void waitauthready() {    if(waitforauthready) { -  PD("%d Wait for auth ready %O\n",c?->socket?->query_fd(),backtrace()[-2]); +  PD("%d Wait for auth ready %O\n",c&&c->socket?->query_fd(),backtrace()[-2]);    Thread.MutexKey lock=_shortmux->lock();    catch(waitforauthready->wait(lock));    lock=0; -  PD("%d Wait for auth ready released.\n",c?->socket?->query_fd()); +  PD("%d Wait for auth ready released.\n",c&&c->socket?->query_fd());    }   }      private inline mixed callout(function(mixed ...:void) f,    float|int delay,mixed ... args) {    return .pgsql_util.local_backend->call_out(f,delay,@args);   }      final void _processloop(.pgsql_util.conxion ci) {    int terminating=0;