pgfdw内补充mot的事务回调忽略事件

This commit is contained in:
gentle_hu
2022-12-12 11:31:21 +08:00
parent 458ac49e0e
commit 5575fe4a2e

View File

@ -795,6 +795,16 @@ static void pgfdw_xact_callback(XactEvent event, void *arg)
return;
}
#ifdef ENABLE_MOT
/*
* These events are added only for MOT FDW. So, others can safely ignore these event.
*/
if (event == XACT_EVENT_START || event == XACT_EVENT_RECORD_COMMIT || event == XACT_EVENT_PREROLLBACK_CLEANUP ||
event == XACT_EVENT_POST_COMMIT_CLEANUP || event == XACT_EVENT_STMT_FINISH) {
return;
}
#endif
/*
* Scan all connection cache entries to find open remote transactions, and
* close them.