Branch: Tag:

2010-02-16

2010-02-16 01:36:02 by Stephen R. van den Berg <srb@cuci.nl>

Sync pgsql portals with server after a reconnect.

Rev: lib/modules/Sql.pmod/pgsql.pike:1.76

1038:    if(_c)    { reconnected++;    prepstmtused=0; - #ifdef DEBUG -  ERROR("While debugging, reconnects are forbidden\n"); -  exit(1); - #endif +     if(!force)    _c.sendterminate();    _c.close(); _c=0;
1522:      final private void sendclose(void|int hold)   { string portalname; -  if(_c.portal && (portalname=_c.portal->_portalname)) +  if(!_c) +  portalsinflight=unnamedportalinuse=0; +  else if(_c.portal && (portalname=_c.portal->_portalname))    { _c.portal->_portalname = UNDEFINED;    _c.setportal();    portalsinflight--;