From bca46fd46b1a1a28daeb9ea3f47cef9bbacecd6d Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 21 Feb 2012 15:02:39 +0530 Subject: rpc/clnt: handle PARENT_DOWN event appropriately Change-Id: I4644e944bad4d240d16de47786b9fa277333dba4 BUG: 767862 Signed-off-by: Raghavendra G Signed-off-by: Amar Tumballi Reviewed-on: http://review.gluster.com/2735 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- rpc/rpc-lib/src/rpc-transport.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'rpc/rpc-lib/src/rpc-transport.c') diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c index b97ba61bf..8a3b839c4 100644 --- a/rpc/rpc-lib/src/rpc-transport.c +++ b/rpc/rpc-lib/src/rpc-transport.c @@ -520,6 +520,20 @@ out: return ret; } + +inline int +rpc_transport_unregister_notify (rpc_transport_t *trans) +{ + GF_VALIDATE_OR_GOTO ("rpc-transport", trans, out); + + trans->notify = NULL; + trans->mydata = NULL; + +out: + return 0; +} + + //give negative values to skip setting that value //this function asserts if both the values are negative. //why call it if you dont set it. -- cgit