cli: Fix incorrect parse logic for volume heal commands

heal-op was being incorrectly set to
GF_SHD_OP_SBRAIN_HEAL_FROM_BIGGER_FILE.

Change-Id: I4d4461c7737feae30102e82f7788083017485669
BUG: 1221128
Signed-off-by: Anuradha <atalur@redhat.com>
Reviewed-on: http://review.gluster.org/10771
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
This commit is contained in:
Anuradha 2015-05-13 15:29:57 +05:30 committed by Pranith Kumar Karampuri
parent 010da8e41e
commit 59981aeb1c

View File

@ -3323,8 +3323,8 @@ heal_command_type_get (const char *command)
[GF_SHD_OP_STATISTICS] = "statistics",
[GF_SHD_OP_STATISTICS_HEAL_COUNT] = NULL,
[GF_SHD_OP_STATISTICS_HEAL_COUNT_PER_REPLICA] = NULL,
[GF_SHD_OP_SBRAIN_HEAL_FROM_BIGGER_FILE] = "split-brain",
[GF_SHD_OP_SBRAIN_HEAL_FROM_BRICK] = "split-brain",
[GF_SHD_OP_SBRAIN_HEAL_FROM_BIGGER_FILE] = NULL,
[GF_SHD_OP_SBRAIN_HEAL_FROM_BRICK] = NULL,
[GF_SHD_OP_HEAL_ENABLE] = "enable",
[GF_SHD_OP_HEAL_DISABLE] = "disable",
};