summaryrefslogtreecommitdiff
path: root/src/include/replication/reorderbuffer.h
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2021-06-24 10:45:23 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2021-06-24 10:45:34 +0300
commit2a0ab13f8dd1346d03b00a737734aeca036514f9 (patch)
tree2a62824967f8747cbcf1068a82edcc83366221c7 /src/include/replication/reorderbuffer.h
parent7a4ecefe9d77b7bb09caa5d82de433494e017363 (diff)
Prevent race condition while reading relmapper file.
Contrary to the comment here, POSIX does not guarantee atomicity of a read(), if another process calls write() concurrently. Or at least Linux does not. Add locking to load_relmap_file() to avoid the race condition. Fixes bug #17064. Thanks to Alexander Lakhin for the report and test case. Backpatch-through: 9.6, all supported versions. Discussion: https://www.postgresql.org/message-id/17064-bb0d7904ef72add3@postgresql.org
Diffstat (limited to 'src/include/replication/reorderbuffer.h')
0 files changed, 0 insertions, 0 deletions