diff options
| author | Michael Scherer <misc@redhat.com> | 2017-02-24 12:41:45 +0100 |
|---|---|---|
| committer | gluster-ant <bugzilla-bot@gluster.org> | 2017-02-24 12:41:45 +0100 |
| commit | 3e6f40b7ec5011d14bf55c5b9585ca0d23af0ff8 (patch) | |
| tree | 83a5e63fe1e90d2bc32e79dc912314e0d070e72a /cli/src/cli-cmd-parser.c | |
| parent | f7d4247e80078dd9be68b5ccfbeee5439a98e90d (diff) | |
dnt: Add a GF_DEFRAG_CMD_NONE to gf_defrag_type
Coverity complain about enum mismatch since we assign GF_OP_CMD_NONE
to a variable holding gf_defrag_type.
Change-Id: I63e71f552b3cc752c26c1b8705420f38908e17e6
BUG: 789278
Signed-off-by: Michael Scherer <misc@redhat.com>
Reviewed-on: https://review.gluster.org/16756
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Tested-by: Michael Scherer <misc@fedoraproject.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
| -rw-r--r-- | cli/src/cli-cmd-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index d234ad09c4..e50d9f66f9 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1845,7 +1845,7 @@ cli_cmd_volume_tier_parse (const char **words, int wordcount, dict_t *dict = NULL; char *volname = NULL; int ret = -1; - int32_t command = GF_OP_CMD_NONE; + int32_t command = GF_DEFRAG_CMD_NONE; int32_t is_force = 0; GF_ASSERT (words); @@ -1926,7 +1926,7 @@ cli_cmd_volume_detach_tier_parse (const char **words, int wordcount, int ret = -1; char *word = NULL; dict_t *dict = NULL; - int32_t command = GF_OP_CMD_NONE; + int32_t command = GF_DEFRAG_CMD_NONE; dict = dict_new (); if (!dict) |
