Branch: Tag:

2018-05-24

2018-05-24 16:50:13 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Make replenishrows() wait until the query has properly started.

1453:    }       private void replenishrows() { -  if (_fetchlimit && datarows->size() <= _fetchlimit >> 1) { +  if (_fetchlimit && datarows->size() <= _fetchlimit >> 1 +  && _state >= COMMITTED) {    Thread.MutexKey lock = closemux->lock();    if (_fetchlimit) {    _fetchlimit = pgsqlsess._fetchlimit;