2021-04-13
2021-04-13 14:13:25 by Stephen R. van den Berg <srb@cuci.nl>
-
17619ae8912cdd7d4dff6d7edc22e61c4e28a558
(6 lines)
(+4/-2)
[
Show
| Annotate
]
Branch: 8.0
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