修复用set方式设置会话级别synchronous_commit为on导致阻塞
This commit is contained in:
@ -1028,7 +1028,7 @@ static void SyncRepGetStandbyGroupAndPriority(int* gid, int* prio)
|
||||
if (AM_WAL_STANDBY_SENDER || AM_WAL_SHARE_STORE_SENDER || AM_WAL_HADR_DNCN_SENDER || AM_WAL_DB_SENDER)
|
||||
return;
|
||||
|
||||
if (!SyncStandbysDefined() || t_thrd.syncrep_cxt.SyncRepConfig == NULL || !SyncRepRequested())
|
||||
if (!SyncStandbysDefined() || t_thrd.syncrep_cxt.SyncRepConfig == NULL)
|
||||
return;
|
||||
|
||||
for (group = 0; group < t_thrd.syncrep_cxt.SyncRepConfigGroups && !found; group++) {
|
||||
|
Reference in New Issue
Block a user