Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit45e040a

Browse files
committed
fix memory issues found by Valgrind (reset state after each subplan)
1 parent801f2ae commit45e040a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎src/partition_router.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
/* Highlight hacks with ModifyTable's fields */
3030
#defineMTHackField(mt_state,field) ( (mt_state)->field )
3131

32-
/* Is current plan the last one? */
33-
#defineMTIsLastPlan(mt_state) ( (mt_state)->mt_whichplan == (mt_state)->mt_nplans - 1 )
34-
3532

3633
#defineMTDisableStmtTriggers(mt_state,pr_state) \
3734
do { \
@@ -402,7 +399,7 @@ router_get_slot(PartitionRouterState *state,
402399
slot=ExecProcNode((PlanState*)linitial(state->css.custom_ps));
403400

404401
/* Restore operation type for AFTER STATEMENT triggers */
405-
if (TupIsNull(slot)&&MTIsLastPlan(state->mt_state))
402+
if (TupIsNull(slot))
406403
slot=router_set_slot(state,NULL,CMD_UPDATE);
407404

408405
/* But we have to process non-empty slot */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp