summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2013-02-18 15:51:35 +0530
committerAnand Avati <avati@redhat.com>2013-05-23 09:54:31 -0700
commitec540a0b5df87e526f77c625af7ce5f21365fb4c (patch)
tree0193c41bfae67a74a26a5347ca28c0d2a1ed3063
parent3d68ed8fbb41be06c222aa7754b36e77edced92a (diff)
rpc: change dict key for fqdn
changed the key from "client.fqdn", which could be wrongly construed as belonging to protocol/client, to "fqdn". This is a backport of 8403f9a2d976c33e01fbd9e4a4b04e8f1e936806. Change-Id: Ib5f4a875a00b99cd903a29da19bafeb70baaab4e BUG: 950056 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.org/4536 Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.org/4965 Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
-rw-r--r--rpc/rpc-lib/src/rpcsvc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c
index 5c0519f57..107a0f9a1 100644
--- a/rpc/rpc-lib/src/rpcsvc.c
+++ b/rpc/rpc-lib/src/rpcsvc.c
@@ -1929,7 +1929,7 @@ rpcsvc_transport_peer_check_search (dict_t *options, char *pattern, char *clstr)
if ((!options) || (!clstr))
return -1;
- ret = dict_get_str (options, "client.fqdn", &fqdn);
+ ret = dict_get_str (options, "fqdn", &fqdn);
if (!dict_get (options, pattern))
return -1;
@@ -2202,7 +2202,7 @@ rpcsvc_transport_peer_check_name (dict_t *options, char *volname,
ret = gf_get_hostname_from_ip (clstr, &hostname);
if (!ret)
- ret = dict_set_dynstr (options, "client.fqdn",
+ ret = dict_set_dynstr (options, "fqdn",
hostname);
aret = rpcsvc_transport_peer_check_allow (options, volname, clstr);