Correct select the GTM proxy for a new node being added
authorPavan Deolasee <pavan.deolasee@gmail.com>
Tue, 31 Jul 2018 05:58:21 +0000 (11:28 +0530)
committerPavan Deolasee <pavan.deolasee@gmail.com>
Tue, 31 Jul 2018 07:07:42 +0000 (12:37 +0530)
commitc8b470c1fbf442a0f9bf23d53f127adfe9a2d1cc
treeaa64e8aadfaec5e1aa91e0c54949e688bc06ebd7
parentcc03f5d3c371920f1d545f2bf6fe5ae08a2075f4
Correct select the GTM proxy for a new node being added

This fixes an oversight in array index lookup. We should have been using
0-based indexes but were instead using 1-based index.
contrib/pgxc_ctl/coord_cmd.c
contrib/pgxc_ctl/datanode_cmd.c