Don't call OwnLatch while holding a spinlock. OwnLatch can elog() under
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 15 Sep 2010 06:51:19 +0000 (06:51 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 15 Sep 2010 06:51:19 +0000 (06:51 +0000)
commit1eab7a560d09fcd7314acd46ded955a37a262683
tree5026c58e24c63c08bf96c677589c8503e37361b3
parent4e97631e6a9d31acfde1057ad966e73f9d28c28d
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.
src/backend/replication/walsender.c