pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-11-22
2014-11-22 02:19:51 by Stephen R. van den Berg <srb@cuci.nl>
d89975818b7c2caaba4fc0501a203a5ca82346c1 (
4
lines) (+
2
/-
2
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Off-by-one error.
797:
foreach(datarowtypes;;int typ) plugbuffer->add_int16(oidformat(typ)); else if(commitprefix->match(_query)) {
-
+
lock=pgsqlsess->_shortmux->lock(); if(pgsqlsess->_portalsinflight) { pgsqlsess->_waittocommit++;
911:
min((portalbuffersize>>1)*rowsreceived/bytesreceived||1, pgsqlsess._fetchlimit); Thread.MutexKey lock=closemux->lock();
-
if(_fetchlimit && inflight<=(_fetchlimit>>1)
-1)
+
if(_fetchlimit && inflight<=(_fetchlimit
-1)
>>1)
_sendexecute(_fetchlimit); else if(!_fetchlimit) PD("<%O _fetchlimit %d, inflight %d, skip execute\n",