From 3657df97f5a38ca09d078b9798cc561eeea4b628 Mon Sep 17 00:00:00 2001 From: Amul Sul Date: Wed, 1 Jul 2020 02:51:37 -0400 Subject: [PATCH] cleanup - adjust code in 80-column window --- src/backend/storage/ipc/ipc.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/backend/storage/ipc/ipc.c b/src/backend/storage/ipc/ipc.c index bdbc2c3ac4b..df28c3141cc 100644 --- a/src/backend/storage/ipc/ipc.c +++ b/src/backend/storage/ipc/ipc.c @@ -206,8 +206,11 @@ proc_exit_prepare(int code) * possible. */ while (--on_proc_exit_index >= 0) - on_proc_exit_list[on_proc_exit_index].function(code, - on_proc_exit_list[on_proc_exit_index].arg); + { + struct ONEXIT onexit = on_proc_exit_list[on_proc_exit_index]; + + onexit.function(code, onexit.arg); + } on_proc_exit_index = 0; } @@ -236,8 +239,11 @@ shmem_exit(int code) elog(DEBUG3, "shmem_exit(%d): %d before_shmem_exit callbacks to make", code, before_shmem_exit_index); while (--before_shmem_exit_index >= 0) - before_shmem_exit_list[before_shmem_exit_index].function(code, - before_shmem_exit_list[before_shmem_exit_index].arg); + { + struct ONEXIT onexit = before_shmem_exit_list[before_shmem_exit_index]; + + onexit.function(code, onexit.arg); + } before_shmem_exit_index = 0; /* @@ -269,8 +275,11 @@ shmem_exit(int code) elog(DEBUG3, "shmem_exit(%d): %d on_shmem_exit callbacks to make", code, on_shmem_exit_index); while (--on_shmem_exit_index >= 0) - on_shmem_exit_list[on_shmem_exit_index].function(code, - on_shmem_exit_list[on_shmem_exit_index].arg); + { + struct ONEXIT onexit = on_shmem_exit_list[on_shmem_exit_index]; + + onexit.function(code, onexit.arg); + } on_shmem_exit_index = 0; shmem_exit_inprogress = false; -- 2.18.0