pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2018-05-07
2018-05-07 09:23:31 by Stephen R. van den Berg <srb@cuci.nl>
db247e41c934c9d3184b1cff417441e8a11a9f30 (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Cater for empty start conditions.
1348:
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);