!4681 【回合】修复升级过程中备机回放阻塞问题
Merge pull request !4681 from 薛蒙恩/upgrade_redo_hang_master
This commit is contained in:
@ -3151,8 +3151,9 @@ VirtualTransactionId *GetConflictingVirtualXIDs(TransactionId limitXmin, Oid dbO
|
||||
volatile PGPROC* proc = g_instance.proc_base_all_procs[pgprocno];
|
||||
volatile PGXACT* pgxact = &g_instance.proc_base_all_xacts[pgprocno];
|
||||
|
||||
/* Exclude prepared transactions */
|
||||
if (proc->pid == 0 || (OidIsValid(dbOid) && proc->databaseId != dbOid)) {
|
||||
/* Exclude prepared transactions and Statement flush thread */
|
||||
if (proc->pid == 0 || (OidIsValid(dbOid) && proc->databaseId != dbOid) ||
|
||||
strcmp((const char*)(proc->myProgName), "Statement flush thread") == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user