Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 801f2ae commit 45e040aCopy full SHA for 45e040a
src/partition_router.c
@@ -29,9 +29,6 @@
29
/* Highlight hacks with ModifyTable's fields */
30
#define MTHackField(mt_state, field) ( (mt_state)->field )
31
32
-/* Is current plan the last one? */
33
-#define MTIsLastPlan(mt_state) ( (mt_state)->mt_whichplan == (mt_state)->mt_nplans - 1 )
34
-
35
36
#define MTDisableStmtTriggers(mt_state, pr_state) \
37
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))
+ if (TupIsNull(slot))
406
slot = router_set_slot(state, NULL, CMD_UPDATE);
407
408
/* But we have to process non-empty slot */
0 commit comments