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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:277:    queueup(portal);    lock=0;    return this;    }    stashcount++;    return bufcon(this);    }       private int write_cb() {    Thread.MutexKey lock = shortmux->lock(); -  towrite -= output_to(socket,towrite); +  if (this) { +  towrite -= output_to(socket, towrite);    lock = 0; - #ifdef PG_DEBUG -  if (!i->fillread) -  PD("%d>Delayed close to go %d\n", socket->query_fd(), sizeof(this)); - #endif +     if (!i->fillread && !sizeof(this))    close(); -  +  } else +  lock = 0;    return 0;    }       final void sendcmd(void|int mode, void|sql_result portal) {    if (portal)    queueup(portal);    Thread.MutexKey lock;    if (started) {    lock = shortmux->lock();    if (sizeof(stash)) {