pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1341:
*/ pgsqlsess->readyforquerycount++, retval = SYNCSEND; pgsqlsess->pportalcount = 0; } } return retval; } private void replenishrows() { if (_fetchlimit && sizeof(datarows) <= _fetchlimit >> 1) {
+
_fetchlimit = pgsqlsess._fetchlimit;
+
if (bytesreceived)
_fetchlimit =
-
min((portalbuffersize >> 1) * index / bytesreceived || 1,
-
pgsqlsess.
_fetchlimit);
+
min((portalbuffersize >> 1) * index / bytesreceived || 1, _fetchlimit);
Thread.MutexKey lock = closemux->lock(); if (_fetchlimit && inflight <= (_fetchlimit - 1) >> 1) _sendexecute(_fetchlimit); else if (!_fetchlimit) PD("<%O _fetchlimit %d, inflight %d, skip execute\n", _portalname, _fetchlimit, inflight); } } final void _processdataready(array datarow, void|int msglen) {