Use ModifyWaitEvent to update exit_on_postmaster_death
authorHeikki Linnakangas
Wed, 5 Mar 2025 23:26:12 +0000 (01:26 +0200)
committerHeikki Linnakangas
Wed, 5 Mar 2025 23:26:12 +0000 (01:26 +0200)
commit84e5b2f07a5e8ba983ff0f6e71b063b27f45f346
tree26276e316a859da6a1e3d638f0ebf0b1a1cd0f46
parent9f25b9f7392267c5628af09f498086ad9f33ccbd
Use ModifyWaitEvent to update exit_on_postmaster_death

This is in preparation for splitting WaitEventSet related functions to
a separate source file. That will hide the details of WaitEventSet
from WaitLatch, so it must use an exposed function instead of
modifying WaitEventSet->exit_on_postmaster_death directly.

Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/8a507fb6-df28-49d3-81a5-ede180d7f0fb@iki.fi
src/backend/storage/ipc/latch.c