summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-cmd-parser.c4
-rw-r--r--xlators/cluster/dht/src/dht-common.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index d234ad09c4e..e50d9f66f91 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)
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h
index ffe53d99ce1..4e9f02cf256 100644
--- a/xlators/cluster/dht/src/dht-common.h
+++ b/xlators/cluster/dht/src/dht-common.h
@@ -320,6 +320,7 @@ struct dht_du {
typedef struct dht_du dht_du_t;
enum gf_defrag_type {
+ GF_DEFRAG_CMD_NONE = 0,
GF_DEFRAG_CMD_START = 1,
GF_DEFRAG_CMD_STOP = 1 + 1,
GF_DEFRAG_CMD_STATUS = 1 + 2,