projects
/
postgres-xl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d28e9b
)
Do not add a spurious ';' when not cleaning WAL directory for a datanode
author
Pavan Deolasee
<
[email protected]
>
Sun, 10 Apr 2016 04:46:27 +0000
(10:16 +0530)
committer
Pavan Deolasee
<
[email protected]
>
Sun, 10 Apr 2016 04:46:27 +0000
(10:16 +0530)
contrib/pgxc_ctl/datanode_cmd.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pgxc_ctl/datanode_cmd.c
b/contrib/pgxc_ctl/datanode_cmd.c
index 3d639ff79c360f9784593c4601d9c3ea124f36a1..a839570332a9974c040cbbcb63683ae4c77fce62 100644
(file)
--- 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]));