diff options
| author | Pranith Kumar K <pkarampu@redhat.com> | 2019-03-28 11:03:34 +0530 | 
|---|---|---|
| committer | Pranith Kumar K <pkarampu@redhat.com> | 2019-03-28 11:05:25 +0530 | 
| commit | 108e4f3481225f98c12f7c283e1ef0388863cf8b (patch) | |
| tree | 764086cdb3b039b9986f0adc27a36dccf8885f17 /xlators | |
| parent | a7110486d048fa379f33ae4e0ba94b5ef3560489 (diff) | |
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')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-conn-mgmt.c | 2 | 
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 c6d7a00b06d..c1ce2dfda37 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;  }  | 
