diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2013-06-27 14:55:59 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-07-04 07:29:22 -0700 |
commit | 78ee0265db1363b7b1f3943d6a3daa622b7564b8 (patch) | |
tree | fa4ac8504fee96e66323f900fb7d114d3eccb238 /xlators/mgmt/glusterd/src/glusterd-handler.c | |
parent | b3cc22184452824d436903baa62635acee739c50 (diff) |
glusterd/common-utils: move hostname helper functions to common-utils
Change-Id: If47e209cb61ea0eb74ee2d6ef9e9342b2d6ee13a
BUG: 980838
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/5261
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 7ae8b28beea..480ee01b0ce 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -809,10 +809,10 @@ __glusterd_handle_cli_probe (rpcsvc_request_t *req) &bind_name) == 0) { gf_log ("glusterd", GF_LOG_DEBUG, "only checking probe address vs. bind address"); - ret = glusterd_is_same_address (bind_name, hostname); + ret = gf_is_same_address (bind_name, hostname); } else { - ret = glusterd_is_local_addr (hostname); + ret = gf_is_local_addr (hostname); } if (ret) { glusterd_xfer_cli_probe_resp (req, 0, GF_PROBE_LOCALHOST, @@ -1695,7 +1695,7 @@ __glusterd_handle_sync_volume (rpcsvc_request_t *req) gf_log (this->name, GF_LOG_INFO, "Received volume sync req " "for volume %s", (flags & GF_CLI_SYNC_ALL) ? "all" : volname); - if (glusterd_is_local_addr (hostname)) { + if (gf_is_local_addr (hostname)) { ret = -1; snprintf (msg, sizeof (msg), "sync from localhost" " not allowed"); |