diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-08-03 14:09:17 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-08-03 21:55:18 -0700 |
commit | a08927b04e2d55edcb12be77128949798ed8f142 (patch) | |
tree | b1808b987eac584251ea9a8463fe37bb47a186be /xlators/mgmt/glusterd/src | |
parent | 8da4623f2274faa9e9d88f7d30babb9ea80fb141 (diff) |
mgmt/glusterd: Ignore case in friend find by hostname
Change-Id: I8dabf07ebb30ec500d847c11d5c72c2d87d10239
BUG: 3309
Reviewed-on: http://review.gluster.com/145
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 8 |
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 73c9ffb029f..137d38017b4 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -2623,8 +2623,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, @@ -2662,8 +2662,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", |