Don't call OwnLatch while holding a spinlock. OwnLatch can elog() under
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Don't call OwnLatch while holding a spinlock. OwnLatch can elog() under some "can't happen" scenarios, and spinlocks should only be held for a few instructions anyway. As pointed out by Fujii Masao.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/walsender.c | modified | +6 −6 |