change global var most_available_sync value by postmaster SIGUP_handler

This commit is contained in:
movead
2023-10-31 10:14:13 +08:00
parent 58db3bf37d
commit eb55697d2e

View File

@ -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();