Skip to content

Commit

Permalink
on->before
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Dec 11, 2023
1 parent 1a68e09 commit 5158078
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void conf_main(Datum main_arg) {
dlist_mutable_iter iter;
Portal portal;
StringInfoData src;
on_shmem_exit(conf_shmem_exit, (Datum)NULL);
before_shmem_exit(conf_shmem_exit, main_arg);
BackgroundWorkerUnblockSignals();
BackgroundWorkerInitializeConnectionMy("postgres", NULL);
set_config_option_my("application_name", "pg_conf", PGC_USERSET, PGC_S_SESSION, GUC_ACTION_SET, true, ERROR);
Expand Down
2 changes: 1 addition & 1 deletion task.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ void task_main(Datum main_arg) {
elog(DEBUG1, "main_arg = %i", DatumGetInt32(main_arg));
task.shared = &taskshared[DatumGetInt32(main_arg)];
work.shared = &workshared[task.shared->slot];
on_shmem_exit(task_shmem_exit, main_arg);
before_shmem_exit(task_shmem_exit, main_arg);
if (!task.shared->in_use) return;
if (!work.shared->in_use) return;
BackgroundWorkerUnblockSignals();
Expand Down
2 changes: 1 addition & 1 deletion work.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ void work_main(Datum main_arg) {
Gp_session_role = GP_ROLE_DISPATCH;
#endif
#endif
on_shmem_exit(work_shmem_exit, main_arg);
before_shmem_exit(work_shmem_exit, main_arg);
if (!work.shared->in_use) return;
pqsignal(SIGHUP, SignalHandlerForConfigReload);
pqsignal(SIGINT, work_idle);
Expand Down

0 comments on commit 5158078

Please sign in to comment.