summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2019-03-28 11:03:34 +0530
committerPranith Kumar K <pkarampu@redhat.com>2019-03-28 11:05:25 +0530
commit108e4f3481225f98c12f7c283e1ef0388863cf8b (patch)
tree764086cdb3b039b9986f0adc27a36dccf8885f17 /xlators/mgmt/glusterd/src
parenta7110486d048fa379f33ae4e0ba94b5ef3560489 (diff)
downloadglusterfs-108e4f3481225f98c12f7c283e1ef0388863cf8b.tar.gz
glusterfs-108e4f3481225f98c12f7c283e1ef0388863cf8b.tar.xz
glusterfs-108e4f3481225f98c12f7c283e1ef0388863cf8b.zip
rpc: Remove duplicate code
rpc_clnt_disable() and rpc_clnt_disconnect() have same code. Removed rpc_clnt_disconnect() and moved calls to rpc_clnt_disconnect() to rpc_clnt_disable() updates bz#1193929 Change-Id: I965f57cc1d5af36d266810125558b6f5e5f279d4 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c
index c6d7a00b06..c1ce2dfda3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c
+++ b/xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c
@@ -97,7 +97,7 @@ glusterd_conn_connect(glusterd_conn_t *conn)
int
glusterd_conn_disconnect(glusterd_conn_t *conn)
{
- rpc_clnt_disconnect(conn->rpc);
+ rpc_clnt_disable(conn->rpc);
return 0;
}