summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2014-08-01 09:56:01 +0000
committerPavan Deolasee2014-09-01 14:20:30 +0000
commit2494b287580267b265c73422f68d2cba52fa467c (patch)
tree79f327ecd495129de4caefb415054d127bd042f0
parent20b267ad183fb60d80dc8aba91188bce547a70ce (diff)
Fix an oversight and remove some debug code left in the previous commit
-rw-r--r--contrib/pgxc_ctl/do_shell.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/contrib/pgxc_ctl/do_shell.c b/contrib/pgxc_ctl/do_shell.c
index 77cccfeb17..65c6fa68f8 100644
--- a/contrib/pgxc_ctl/do_shell.c
+++ b/contrib/pgxc_ctl/do_shell.c
@@ -180,7 +180,6 @@ FILE *pgxc_popen_w(char *host, const char *cmd_fmt, ...)
va_start(arg, cmd_fmt);
vsnprintf(actualCmd, MAXLINE, cmd_fmt, arg);
va_end(arg);
-
snprintf(sshCmd, MAXLINE, "ssh %s@%s \" %s \"", sval(VAR_pgxcUser), host, actualCmd);
if ((f = popen(sshCmd, "w")) == NULL)
elog(ERROR, "ERROR: could not open the command \"%s\" to write, %s\n", sshCmd, strerror(errno));
@@ -213,12 +212,6 @@ int doImmediate(char *host, char *stdIn, const char *cmd_fmt, ...)
{
int rc1;
/* Remote case */
- if (strcmp(host, "none") == 0)
- {
- int *ip = NULL;
- *ip = 1;
- }
-
snprintf(actualCmd, MAXLINE, "ssh %s@%s \"( %s ) > %s 2>&1\" < %s > /dev/null 2>&1",
sval(VAR_pgxcUser), host, cmd_wk,
createRemoteFileName(STDOUT, remoteStdout, MAXPATH),
@@ -331,12 +324,6 @@ int doCmdEl(cmd_t *cmd)
}
if (cmd->host)
{
- if (strcmp(cmd->host, "none") == 0)
- {
- int *ip = NULL;
- *ip = 1;
- }
-
/* Build actual command */
snprintf(allocActualCmd(cmd), MAXLINE,
"ssh %s@%s \"( %s ) > %s 2>&1\" < %s > /dev/null 2>&1",