diff options
| author | Pranith Kumar K <pranithk@gluster.com> | 2012-03-16 16:09:42 +0530 | 
|---|---|---|
| committer | Anand Avati <avati@redhat.com> | 2012-03-18 00:33:28 -0700 | 
| commit | 642343cc55e6ea2b0d463d77334c34790c30080f (patch) | |
| tree | 47aa3e890088463828e936b84ccb56b2fdc49152 /cli/src/cli-cmd-volume.c | |
| parent | f159e2247b58441449ad8da13ddf5cc5d3887b93 (diff) | |
Self-heald: Handle errors gracefully and show errors to users
Change-Id: I5424ebfadb5b2773ee6f7370cc2867a555aa48dd
BUG: 800352
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/2962
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-volume.c')
| -rw-r--r-- | cli/src/cli-cmd-volume.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 9546831ab7c..4e56f9c656c 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -1561,8 +1561,10 @@ cli_cmd_volume_heal_cbk (struct cli_state *state, struct cli_cmd_word *word,          int                     sent = 0;          int                     parse_error = 0;          dict_t                  *options = NULL; +        xlator_t                *this = NULL; -        frame = create_frame (THIS, THIS->ctx->pool); +        this = THIS; +        frame = create_frame (this, this->ctx->pool);          if (!frame)                  goto out;  | 
