summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-04-21 05:22:23 +0000
committerAnand Avati <avati@gluster.com>2011-04-21 07:38:23 -0700
commit14f9c126c1237410bd9ef159e746afd7ff8c2753 (patch)
treeda7e1bffa156ade822dfd8fdab01bc9ca530d1bc /cli
parent58465cdca9386fe2fa15049911223f7282e1b412 (diff)
glusterd / cli: make the needed changes to let a masterless geo-rep config request get thru
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2785 (gsyncd logs on slave side go to /dev/null) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2785
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-rpc-ops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 34033b1ea93..794eab0178c 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -2603,8 +2603,9 @@ gf_cli3_1_gsync_config_command (gf1_cli_gsync_set_rsp rsp)
}
snprintf (cmd, PATH_MAX,
- GSYNCD_PREFIX"/gsyncd -c %s/"GSYNC_CONF" :%s %s --config-%s%s%s",
- rsp.glusterd_workdir, rsp.master, rsp.slave, rsp.subop,
+ GSYNCD_PREFIX"/gsyncd -c %s/"GSYNC_CONF" %s%s %s --config-%s%s%s",
+ rsp.glusterd_workdir,
+ *rsp.master ? ":" : "", rsp.master, rsp.slave, rsp.subop,
*rsp.op_name ? " " : "", rsp.op_name);
ret = system (cmd);
/*