Branch: Tag:

2014-11-22

2014-11-22 02:19:51 by Stephen R. van den Berg <srb@cuci.nl>

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",