]> granicus.if.org Git - postgresql/commit
Fix oversight from 9e149c8 with spin-lock handling
authorMichael Paquier <michael@paquier.xyz>
Mon, 11 Jun 2018 21:52:34 +0000 (06:52 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 11 Jun 2018 21:52:34 +0000 (06:52 +0900)
commitf8795d2ec8632a7242896e0f8322d13bfe922512
tree14bc8da59f6754410b68e2cf684417f36f5329fd
parent69025c5a07a10c842bfbcb62d4af1221e5ce7e85
Fix oversight from 9e149c8 with spin-lock handling

Calling an external function while a pin-lock is held is a bad idea as
those are designed to be short-lived.  The stress of a first commit into
a large git history may contribute to that.

Reported-by: Andres Freund
Discussion: https://postgr.es/m/20180611164952.vmxdpdpirdtkdsz6@alap3.anarazel.de
src/backend/replication/slot.c