OSDN Git Service

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)
committerMasaoFujii <masao.fujii@gmail.com>
Thu, 7 Oct 2010 10:47:48 +0000 (19:47 +0900)
commit174215826d65f8922a54750252e3c49fe5bb390e
tree6b78fbc5cc1cad396ad6f6a76ec4eda9848198ad
parent7405bc2dcde623047a3da9940540964cb4bea55c
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