diff options
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index ca4a60797a1..dbc9a595087 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -6273,11 +6273,16 @@ __glusterd_peer_rpc_notify (struct rpc_clnt *rpc, void *mydata, this = THIS; conf = this->private; - if (RPC_CLNT_DESTROY == event) { + switch (event) { + case RPC_CLNT_DESTROY: GF_FREE (peerctx->errstr); GF_FREE (peerctx->peername); GF_FREE (peerctx); return 0; + case RPC_CLNT_PING: + return 0; + default: + break; } rcu_read_lock (); |