Branch: Tag:

2014-11-23

2014-11-23 02:30:07 by Stephen R. van den Berg <srb@cuci.nl>

Workaround c?-> bug.

113:    switch(type) {    case 'O':    res=sprintf(DRIVERNAME"(%s@%s:%d/%s,%d,%d)", -  user,_host,_port,database,c?->socket?->query_fd(),backendpid); +  user,_host,_port,database,c&&c->socket?->query_fd(),backendpid);    break;    }    return res;
581:      private void waitauthready() {    if(waitforauthready) { -  PD("%d Wait for auth ready %O\n",c?->socket?->query_fd(),backtrace()[-2]); +  PD("%d Wait for auth ready %O\n",c&&c->socket?->query_fd(),backtrace()[-2]);    Thread.MutexKey lock=_shortmux->lock();    catch(waitforauthready->wait(lock));    lock=0; -  PD("%d Wait for auth ready released.\n",c?->socket?->query_fd()); +  PD("%d Wait for auth ready released.\n",c&&c->socket?->query_fd());    }   }