diff options
| author | Kaushik BV <kaushikbv@gluster.com> | 2011-05-15 04:59:53 +0000 | 
|---|---|---|
| committer | Anand Avati <avati@gluster.com> | 2011-05-30 01:49:39 -0700 | 
| commit | f2d0baecfffe96231b52304ad0560c0697150fff (patch) | |
| tree | 118a525f619d22f4c17c3e100b78e3c54423514f /cli | |
| parent | e1f79413774939bd23563b1d85b0c64a989301bc (diff) | |
mgmt/glusterd: Display a warning message to CLI in case of a corrupt geo-rep session
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2828 (gluster geo-rep stop should not show unsuccessful when the status is corrupt)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2828
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/src/cli-rpc-ops.c | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 4e3ae1ab5..ff606746d 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -2653,7 +2653,6 @@ out:          return ret;  } -  int  gf_cli3_1_gsync_config_command (dict_t *dict)  { @@ -2758,6 +2757,7 @@ gf_cli3_1_gsync_set_cbk (struct rpc_req *req, struct iovec *iov,          int                     ret     = 0;          gf1_cli_gsync_set_rsp   rsp     = {0, };          dict_t                  *dict   = NULL; +        char                    *gsync_status = NULL;          char                    *master = NULL;          char                    *slave  = NULL; @@ -2792,6 +2792,13 @@ gf_cli3_1_gsync_set_cbk (struct rpc_req *req, struct iovec *iov,                  goto out;          } +        ret = dict_get_str (dict, "gsync-status", &gsync_status); +        if (!ret) +                cli_out (gsync_status); +        else +                ret = 0; + +          switch (rsp.type) {                  case GF_GSYNC_OPTION_TYPE_START:                  case GF_GSYNC_OPTION_TYPE_STOP:  | 
