aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/commit_ts
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-11-29 09:12:19 +0900
committerMichael Paquier <michael@paquier.xyz>2018-11-29 09:12:19 +0900
commit4c703369af3e34cd7289d99c1b6f10e3b3bbbb4d (patch)
tree890e3b18f2eebef25f862803127a85dc17fe4636 /src/test/modules/commit_ts
parent1a990b207b86967cc323c00adda21fef3b2cd63e (diff)
downloadpostgresql-4c703369af3e34cd7289d99c1b6f10e3b3bbbb4d.tar.gz
postgresql-4c703369af3e34cd7289d99c1b6f10e3b3bbbb4d.zip
Fix handling of synchronous replication for stopping WAL senders
This fixes an oversight from c6c3334 which forgot that if a subset of WAL senders are stopping and in a sync state, other WAL senders could still be waiting for a WAL position to be synced while committing a transaction. However the subset of stopping senders would not release waiters, potentially breaking synchronous replication guarantees. This commit makes sure that even WAL senders stopping are able to release waiters and are tracked properly. On 9.4, this can also trigger an assertion failure when setting for example max_wal_senders to 1 where a WAL sender is not able to find itself as in synchronous state when the instance stops. Reported-by: Paul Guo Author: Paul Guo, Michael Paquier Discussion: https://postgr.es/m/CAEET0ZEv8VFqT3C-cQm6byOB4r4VYWcef1J21dOX-gcVhCSpmA@mail.gmail.com Backpatch-through: 9.4
Diffstat (limited to 'src/test/modules/commit_ts')
0 files changed, 0 insertions, 0 deletions