From 57be13e5652214340955b2b86a0d000b495b331b Mon Sep 17 00:00:00 2001 From: movead Date: Tue, 31 Oct 2023 10:21:17 +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 1442a284ee..eb5a6aa2e5 100644 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -5278,6 +5278,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(); -- Gitee