aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2020-06-08 16:50:37 -0700
committerAndres Freund <andres@anarazel.de>2020-06-18 14:13:06 -0700
commit6cc2866c4cdf6a167be1ed9cb0fff9fce55758d6 (patch)
tree0b0af19a381ff2d95e9217928612ccabbdb19407 /src/backend/access/spgist
parent008c119928a3eec4e55560562d872117e08f6df3 (diff)
downloadpostgresql-6cc2866c4cdf6a167be1ed9cb0fff9fce55758d6.tar.gz
postgresql-6cc2866c4cdf6a167be1ed9cb0fff9fce55758d6.zip
Fix deadlock danger when atomic ops are done under spinlock.
This was a danger only for --disable-spinlocks in combination with atomic operations unsupported by the current platform. While atomics.c was careful to signal that a separate semaphore ought to be used when spinlock emulation is active, spin.c didn't actually implement that mechanism. That's my (Andres') fault, it seems to have gotten lost during the development of the atomic operations support. Fix that issue and add test for nesting atomic operations inside a spinlock. Author: Andres Freund Discussion: https://postgr.es/m/20200605023302.g6v3ydozy5txifji@alap3.anarazel.de Backpatch: 9.5-
Diffstat (limited to 'src/backend/access/spgist')
0 files changed, 0 insertions, 0 deletions