2021-04-13
2021-04-13 12:32:03 by Stephen R. van den Berg <srb@cuci.nl>
-
a09bfe05f6014376f754a3a6731e03d02e6fd312
(6 lines)
(+4/-2)
[
Show
| Annotate
]
Branch: master
pgsql: Avoid recursive errors in case of async destruct.
519: 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