diff options
| author | Pavan Deolasee | 2016-04-10 04:46:27 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2016-10-18 10:05:04 +0000 |
| commit | eed242e84c34d254873b58e000918b3d1c63d3c1 (patch) | |
| tree | 2d8fe649f77b90158f69e8d2b1a3c3fbd05cc3b9 | |
| parent | 749f9224c259f28548bb88481cdcaae2abb51316 (diff) | |
Do not add a spurious ';' when not cleaning WAL directory for a datanode
| -rw-r--r-- | contrib/pgxc_ctl/datanode_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pgxc_ctl/datanode_cmd.c b/contrib/pgxc_ctl/datanode_cmd.c index 3d639ff79c..a839570332 100644 --- a/contrib/pgxc_ctl/datanode_cmd.c +++ b/contrib/pgxc_ctl/datanode_cmd.c @@ -1816,10 +1816,11 @@ cmd_t *prepare_cleanDatanodeMaster(char *nodeName) cmd = initCmd(aval(VAR_datanodeMasterServers)[idx]); snprintf(newCommand(cmd), MAXLINE, - "rm -rf %s; %s %s ; mkdir -p %s; chmod 0700 %s; rm -f /tmp/.s.*%d*", + "rm -rf %s; %s %s %s mkdir -p %s; chmod 0700 %s; rm -f /tmp/.s.*%d*", aval(VAR_datanodeMasterDirs)[idx], wal ? "rm -rf " : "", wal ? aval(VAR_datanodeMasterWALDirs)[idx] : "", + wal ? ";" : "", aval(VAR_datanodeMasterDirs)[idx], aval(VAR_datanodeMasterDirs)[idx], atoi(aval(VAR_datanodePoolerPorts)[idx])); |
