Skip to content

Commit 01238ae

Browse files
committed
This commit fixes the bug introduced during pg_backup merge.
Now datanode failover is associated with ALTER NODE.
1 parent cd51b73 commit 01238ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/pgxc_ctl/datanode_cmd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,9 @@ failover_oneDatanode(int datanodeIdx)
833833
continue;
834834
}
835835
fprintf(f,
836-
#if 0 /* Current alter node does't work well in this context */
836+
#if 1
837837
"ALTER NODE %s WITH (HOST='%s', PORT=%s);\n"
838-
#else
838+
#else /* When alter node does't work. It does not help anyway */
839839
"DROP NODE %s;\n"
840840
"CREATE NODE %s WITH (type = datanode, HOST='%s', PORT=%s);\n"
841841
#endif

0 commit comments

Comments
 (0)