summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handshake.c7
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c3
-rw-r--r--xlators/protocol/client/src/client-handshake.c4
-rw-r--r--xlators/protocol/server/src/server.c3
4 files changed, 10 insertions, 7 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c
index dc772ca6f51..550ee2c10b3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handshake.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c
@@ -1824,7 +1824,7 @@ __glusterd_mgmt_hndsk_version_ack_cbk (struct rpc_req *req, struct iovec *iov,
out:
if (ret != 0 && peerinfo)
- rpc_transport_disconnect (peerinfo->rpc->conn.trans);
+ rpc_transport_disconnect (peerinfo->rpc->conn.trans, _gf_false);
rcu_read_unlock ();
@@ -1949,7 +1949,8 @@ out:
frame->local = NULL;
STACK_DESTROY (frame->root);
if (peerinfo)
- rpc_transport_disconnect (peerinfo->rpc->conn.trans);
+ rpc_transport_disconnect (peerinfo->rpc->conn.trans,
+ _gf_false);
}
rcu_read_unlock ();
@@ -2218,7 +2219,7 @@ __glusterd_peer_dump_version_cbk (struct rpc_req *req, struct iovec *iov,
out:
if (ret != 0 && peerinfo)
- rpc_transport_disconnect (peerinfo->rpc->conn.trans);
+ rpc_transport_disconnect (peerinfo->rpc->conn.trans, _gf_false);
rcu_read_unlock ();
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index fedfb746c50..a1c9132feda 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -4059,7 +4059,8 @@ gd_check_and_update_rebalance_info (glusterd_volinfo_t *old_volinfo,
//Disconnect from rebalance process
if (glusterd_defrag_rpc_get (old->defrag)) {
- rpc_transport_disconnect (old->defrag->rpc->conn.trans);
+ rpc_transport_disconnect (old->defrag->rpc->conn.trans,
+ _gf_false);
glusterd_defrag_rpc_put (old->defrag);
}
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c
index c28fa5dd7cd..adccd8d4e51 100644
--- a/xlators/protocol/client/src/client-handshake.c
+++ b/xlators/protocol/client/src/client-handshake.c
@@ -1558,7 +1558,7 @@ out:
if (conf) {
/* Need this to connect the same transport on different port */
/* ie, glusterd to glusterfsd */
- rpc_transport_disconnect (conf->rpc->conn.trans);
+ rpc_transport_disconnect (conf->rpc->conn.trans, _gf_false);
}
return ret;
@@ -1677,7 +1677,7 @@ out:
STACK_DESTROY (frame->root);
if (ret != 0)
- rpc_transport_disconnect (conf->rpc->conn.trans);
+ rpc_transport_disconnect (conf->rpc->conn.trans, _gf_false);
return ret;
}
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c
index a99c1470276..af3adb36ef2 100644
--- a/xlators/protocol/server/src/server.c
+++ b/xlators/protocol/server/src/server.c
@@ -897,7 +897,8 @@ reconfigure (xlator_t *this, dict_t *options)
"unauthorized client, hence "
"terminating the connection %s",
xprt->peerinfo.identifier);
- rpc_transport_disconnect(xprt);
+ rpc_transport_disconnect(xprt,
+ _gf_false);
}
}
}