File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 29
29
/* Highlight hacks with ModifyTable's fields */
30
30
#define MTHackField (mt_state , field ) ( (mt_state)->field )
31
31
32
- /* Is current plan the last one? */
33
- #define MTIsLastPlan (mt_state ) ( (mt_state)->mt_whichplan == (mt_state)->mt_nplans - 1 )
34
-
35
32
36
33
#define MTDisableStmtTriggers (mt_state , pr_state ) \
37
34
do { \
@@ -402,7 +399,7 @@ router_get_slot(PartitionRouterState *state,
402
399
slot = ExecProcNode ((PlanState * ) linitial (state -> css .custom_ps ));
403
400
404
401
/* Restore operation type for AFTER STATEMENT triggers */
405
- if (TupIsNull (slot ) && MTIsLastPlan ( state -> mt_state ) )
402
+ if (TupIsNull (slot ))
406
403
slot = router_set_slot (state , NULL , CMD_UPDATE );
407
404
408
405
/* But we have to process non-empty slot */
You can’t perform that action at this time.
0 commit comments