summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2024-01-29 11:46:22 +0000
committerHeikki Linnakangas2024-01-29 11:46:30 +0000
commitb899e00e716bf21c1858c5d07995882a44638ab2 (patch)
treefb664028679d486e03880567ef8419cd10271bfd /src/backend/utils/adt/xml.c
parentedbd1b41ab5bd4be06dbebb3c60149f7910d7c5c (diff)
Fix locking when fixing an incomplete split of a GIN internal page
ginFinishSplit() expects the caller to hold an exclusive lock on the buffer, but when finishing an earlier "leftover" incomplete split of an internal page, the caller held a shared lock. That caused an assertion failure in MarkBufferDirty(). Without assertions, it could lead to corruption if two backends tried to complete the split at the same time. On master, add a test case using the new injection point facility. Report and analysis by Fei Changhong. Backpatch the fix to all supported versions. Reviewed-by: Fei Changhong, Michael Paquier Discussion: https://www.postgresql.org/message-id/[email protected]
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions