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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:119:    Thread.MutexKey lock;    int looponce;    do {    looponce = 0;    if (lock = backendmux->trylock()) {    PD("Starting local backend\n");    while (!clientsregistered->drained() // Autoterminate when not needed    || sizeof(local_backend->call_out_info())) {    mixed err;    if (err = catch(local_backend(4096.0))) -  werror(describe_backtrace(err)); +  master()->handle_error(err);    }    PD("Terminating local backend\n");    lock = 0;    looponce = !clientsregistered->drained();    }    } while (looponce);   }      //! Registers yourself as a user of this backend. If the backend   //! has not been started yet, it will be spawned automatically.
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1058:    lock = pgsqlsess->shortmux->lock();    PD("Commit waiting for statements to finish\n");    catch(PT(pgsqlsess->statementsinflight->wait_till_drained(lock, 1)));    }    lock = 0;    PD("Bind portal %O statement %O\n", _portalname, _preparedname);    _fetchlimit = pgsqlsess->_fetchlimit;    _bindportal();    conxsess bindbuffer = c->start();    _unnamedstatementkey = 0; +  stmtifkey = 0;    CHAIN(bindbuffer)->add_int8('B')->add_hstring(plugbuffer, 4, 4);    if (!_tprepared && sizeof(_preparedname))    closestatement(CHAIN(bindbuffer), _preparedname);    _sendexecute(_fetchlimit    && !(transtype != NOTRANS    || sizeof(_query) >= MINPREPARELENGTH &&    execfetchlimit->match(_query))    && _fetchlimit, bindbuffer);    }    }