Branch: Tag:

2021-04-13

2021-04-13 14:13:25 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Avoid recursive errors in case of async destruct.

481: Inside #if defined(PG_DEBUGRACE)
   PD("Nostash locked by %s\n",    describe_backtrace(nostash->current_locking_thread()->backtrace()));   #endif -  while (lock = (intp(waitforreal) && waitforreal > 0 -  ? nostash->lock : nostash->trylock)(1)) { +  while (lock = nostash +  && ((intp(waitforreal) && waitforreal > 0 +  ? nostash->lock : nostash->trylock)(1))) {    int mode;    if (sizeof(stash) && (mode = getstash(KEEP)) > KEEP)    sendcmd(mode); // Force out stash to the server