File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,20 @@ pgfdw_xact_callback(XactEvent event, void *arg)
593
593
HASH_SEQ_STATUS scan ;
594
594
ConnCacheEntry * entry ;
595
595
596
+ /* Do nothing for this events */
597
+ switch (event )
598
+ {
599
+ case XACT_EVENT_START :
600
+ case XACT_EVENT_POST_PREPARE :
601
+ case XACT_EVENT_COMMIT_PREPARED :
602
+ case XACT_EVENT_PRE_COMMIT_PREPARED :
603
+ case XACT_EVENT_ABORT_PREPARED :
604
+ case XACT_EVENT_COMMIT_COMMAND :
605
+ return ;
606
+ default :
607
+ break ;
608
+ }
609
+
596
610
/* Quick exit if no connections were touched in this transaction. */
597
611
if (!xact_got_connection )
598
612
return ;
@@ -714,6 +728,18 @@ pgfdw_xact_callback(XactEvent event, void *arg)
714
728
entry -> have_error = false;
715
729
}
716
730
break ;
731
+ case XACT_EVENT_START :
732
+ case XACT_EVENT_POST_PREPARE :
733
+ case XACT_EVENT_COMMIT_PREPARED :
734
+ case XACT_EVENT_PRE_COMMIT_PREPARED :
735
+ case XACT_EVENT_ABORT_PREPARED :
736
+ case XACT_EVENT_COMMIT_COMMAND :
737
+ /*
738
+ * New event can break our state machine, so let's list
739
+ * them here explicitely and force compiler warning in
740
+ * case of unhandled event.
741
+ */
742
+ break ;
717
743
}
718
744
}
719
745
You can’t perform that action at this time.
0 commit comments