Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c69f0f2

Browse files
committed
Fix compilation error on older GCCs
1 parent 3d98a8e commit c69f0f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/partition_overseer.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ partition_overseer_create_scan_state(CustomScan *node)
6868
static void
6969
set_mt_state_for_router(PlanState *state, void *context)
7070
{
71+
int i;
7172
ModifyTableState *mt_state = (ModifyTableState *) state;
7273

7374
if (!IsA(state, ModifyTableState))
7475
return;
7576

76-
for (int i = 0; i < mt_state->mt_nplans; i++)
77+
for (i = 0; i < mt_state->mt_nplans; i++)
7778
{
7879
CustomScanState *pf_state = (CustomScanState *) mt_state->mt_plans[i];
7980
PartitionRouterState *pr_state;

0 commit comments

Comments
 (0)