diff options
author | Csaba Henk <csaba@gluster.com> | 2011-04-21 05:22:23 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-21 07:38:23 -0700 |
commit | 14f9c126c1237410bd9ef159e746afd7ff8c2753 (patch) | |
tree | da7e1bffa156ade822dfd8fdab01bc9ca530d1bc /cli/src/cli-rpc-ops.c | |
parent | 58465cdca9386fe2fa15049911223f7282e1b412 (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/src/cli-rpc-ops.c')
-rw-r--r-- | cli/src/cli-rpc-ops.c | 5 |
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); /* |