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-clnt.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rpc/rpc-lib/src/rpc-clnt.h') diff --git a/rpc/rpc-lib/src/rpc-clnt.h b/rpc/rpc-lib/src/rpc-clnt.h index dcd926da93f..4fce0854604 100644 --- a/rpc/rpc-lib/src/rpc-clnt.h +++ b/rpc/rpc-lib/src/rpc-clnt.h @@ -187,6 +187,7 @@ typedef struct rpc_clnt { glusterfs_ctx_t *ctx; int refcount; int auth_null; + char disabled; } rpc_clnt_t; @@ -242,4 +243,8 @@ int rpcclnt_cbk_program_register (struct rpc_clnt *svc, int rpc_clnt_transport_unix_options_build (dict_t **options, char *filepath); + +void +rpc_clnt_disable (struct rpc_clnt *rpc); + #endif /* !_RPC_CLNT_H */ -- cgit