From eb55697d2e7aaffce34dc6359bea1d36353fc702 Mon Sep 17 00:00:00 2001 From: movead Date: Tue, 31 Oct 2023 10:14:13 +0800 Subject: [PATCH] change global var most_available_sync value by postmaster SIGUP_handler --- src/gausskernel/process/postmaster/postmaster.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gausskernel/process/postmaster/postmaster.cpp b/src/gausskernel/process/postmaster/postmaster.cpp index 2402b0944..1d88978fd 100644 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -5583,6 +5583,9 @@ static void SIGHUP_handler(SIGNAL_ARGS) LWLockRelease(ConfigFileLock); NotifyGscSigHup(); + most_available_sync = (volatile bool) u_sess->attr.attr_storage.guc_most_available_sync; + SyncRepUpdateSyncStandbysDefined(); + (void)SignalChildren(SIGHUP); if (ENABLE_THREAD_POOL) { g_threadPoolControler->GetSessionCtrl()->SigHupHandler();