summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index e42f119099b..ff56c9f3f39 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -6369,7 +6369,7 @@ out:
}
static inline int
-is_replica_volume (int type)
+glusterd_is_replica_volume (int type)
{
if (type == GF_CLUSTER_TYPE_REPLICATE ||
type == GF_CLUSTER_TYPE_STRIPE_REPLICATE)
@@ -6381,11 +6381,13 @@ glusterd_is_volume_replicate (glusterd_volinfo_t *volinfo)
{
gf_boolean_t replicates = _gf_false;
if (volinfo->type == GF_CLUSTER_TYPE_TIER) {
- replicates = is_replica_volume (volinfo->tier_info.cold_type) |
- is_replica_volume (volinfo->tier_info.hot_type);
+ replicates = glusterd_is_replica_volume
+ (volinfo->tier_info.cold_type) |
+ glusterd_is_replica_volume
+ (volinfo->tier_info.hot_type);
return replicates;
}
- return is_replica_volume ((volinfo->type));
+ return glusterd_is_replica_volume ((volinfo->type));
}
gf_boolean_t