From 14f9c126c1237410bd9ef159e746afd7ff8c2753 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Thu, 21 Apr 2011 05:22:23 +0000 Subject: glusterd / cli: make the needed changes to let a masterless geo-rep config request get thru Signed-off-by: Csaba Henk Signed-off-by: Anand Avati BUG: 2785 (gsyncd logs on slave side go to /dev/null) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2785 --- cli/src/cli-rpc-ops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/src') 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); /* -- cgit