diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-07-12 20:22:17 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-07-12 20:25:31 +0200 |
commit | 39035a52894a419ae1b905adfdb0bad72ee19a36 (patch) | |
tree | 93aeb6bdb15afcf018aa1f4550c4bde54c9aebab /src | |
parent | aacdf9a06966d57bb8f6968a41e0690a31d35a51 (diff) | |
download | postgresql-39035a52894a419ae1b905adfdb0bad72ee19a36.tar.gz postgresql-39035a52894a419ae1b905adfdb0bad72ee19a36.zip |
Reset shmem_exit_inprogress after shmem_exit()
In ad9a274778d2d88c46b90309212b92ee7fdf9afe, shmem_exit_inprogress was
introduced. But we need to reset it after shmem_exit(), because unlike
the similar proc_exit(), shmem_exit() can also be called for cleanup
when the process will not exit.
Reported-by: Andrew Gierth <andrew@tao11.riddles.org.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/ipc/ipc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/storage/ipc/ipc.c b/src/backend/storage/ipc/ipc.c index 53f7c1e77ea..a85a1c6de5d 100644 --- a/src/backend/storage/ipc/ipc.c +++ b/src/backend/storage/ipc/ipc.c @@ -272,6 +272,8 @@ shmem_exit(int code) on_shmem_exit_list[on_shmem_exit_index].function(code, on_shmem_exit_list[on_shmem_exit_index].arg); on_shmem_exit_index = 0; + + shmem_exit_inprogress = false; } /* ---------------------------------------------------------------- |