!4363 修复gs_ctl query时sync_most_available值不正确的问题

Merge pull request !4363 from Movead/master
This commit is contained in:
opengauss_bot
2023-11-06 02:58:17 +00:00
committed by Gitee

View File

@ -5722,6 +5722,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();