summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-08-03 14:17:07 +0530
committerAnand Avati <avati@gluster.com>2011-08-03 21:55:15 -0700
commitb835c75c336c6065a3a4d37fe35db72ac4d3745f (patch)
tree33516147fc6256e6e3a2bb630b974da270b80e3c /xlators/mgmt
parent09ed0531bd882726e2965d2274d5c9171998f9c8 (diff)
mgmt/glusterd: Ignore case in friend find by hostname
Change-Id: Id24627b5a59ef21a799b6a4da8cd063966cad3b9 BUG: 3309 Reviewed-on: http://review.gluster.com/146 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index e07ce143b19..036457a1b0c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -2619,8 +2619,8 @@ glusterd_friend_find_by_hostname (const char *hoststr,
GF_ASSERT (priv);
list_for_each_entry (entry, &priv->peers, uuid_list) {
- if (!strncmp (entry->hostname, hoststr,
- 1024)) {
+ if (!strncasecmp (entry->hostname, hoststr,
+ 1024)) {
gf_log ("glusterd", GF_LOG_DEBUG,
"Friend %s found.. state: %d", hoststr,
@@ -2658,8 +2658,8 @@ glusterd_friend_find_by_hostname (const char *hoststr,
goto out;
list_for_each_entry (entry, &priv->peers, uuid_list) {
- if (!strncmp (entry->hostname, host,
- 1024) || !strncmp (entry->hostname,hname,
+ if (!strncasecmp (entry->hostname, host,
+ 1024) || !strncasecmp (entry->hostname,hname,
1024)) {
gf_log ("glusterd", GF_LOG_DEBUG,
"Friend %s found.. state: %d",