diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 2ab80c2ff63..a62255c011c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -316,8 +316,8 @@ glusterd_add_volume_detail_to_dict (glusterd_volinfo_t *volinfo,          if (ret)                  goto out; -        snprintf (key, 256, "volume%d.sub_count", count); -        ret = dict_set_int32 (volumes, key, volinfo->sub_count); +        snprintf (key, 256, "volume%d.dist_count", count); +        ret = dict_set_int32 (volumes, key, volinfo->dist_leaf_count);          if (ret)                  goto out; @@ -326,6 +326,11 @@ glusterd_add_volume_detail_to_dict (glusterd_volinfo_t *volinfo,          if (ret)                  goto out; +        snprintf (key, 256, "volume%d.replica_count", count); +        ret = dict_set_int32 (volumes, key, volinfo->replica_count); +        if (ret) +                goto out; +          snprintf (key, 256, "volume%d.transport", count);          ret = dict_set_int32 (volumes, key, volinfo->transport_type);          if (ret)  | 
