diff options
| author | Krutika Dhananjay <kdhananj@redhat.com> | 2013-05-07 15:58:45 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2013-06-18 22:15:12 -0700 | 
| commit | 78a2e27ec7d85ed5e915817c9bcc080919791b7b (patch) | |
| tree | cb376cdab26898d9a4a6568ea8ad02db87391153 /rpc/xdr/src/cli1-xdr.c | |
| parent | bb5ded9bee8cf7671bcb7c06e9ebca91f7bf8d67 (diff) | |
glusterd: Log peer op status at the appropriate time
Change-Id: Ia8e1af082078f2f791708ba4faa4992bf291dd6e
BUG: 961339
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/5023
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'rpc/xdr/src/cli1-xdr.c')
| -rw-r--r-- | rpc/xdr/src/cli1-xdr.c | 107 | 
1 files changed, 0 insertions, 107 deletions
diff --git a/rpc/xdr/src/cli1-xdr.c b/rpc/xdr/src/cli1-xdr.c index b8780af9143..7d85b43c196 100644 --- a/rpc/xdr/src/cli1-xdr.c +++ b/rpc/xdr/src/cli1-xdr.c @@ -207,113 +207,6 @@ xdr_gf_cli_rsp (XDR *xdrs, gf_cli_rsp *objp)  }  bool_t -xdr_gf1_cli_probe_req (XDR *xdrs, gf1_cli_probe_req *objp) -{ -	register int32_t *buf; -        buf = NULL; - -	 if (!xdr_string (xdrs, &objp->hostname, ~0)) -		 return FALSE; -	 if (!xdr_int (xdrs, &objp->port)) -		 return FALSE; -	return TRUE; -} - -bool_t -xdr_gf1_cli_probe_rsp (XDR *xdrs, gf1_cli_probe_rsp *objp) -{ -	register int32_t *buf; -        buf = NULL; - - -	if (xdrs->x_op == XDR_ENCODE) { -		buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); -		if (buf == NULL) { -			 if (!xdr_int (xdrs, &objp->op_ret)) -				 return FALSE; -			 if (!xdr_int (xdrs, &objp->op_errno)) -				 return FALSE; -			 if (!xdr_int (xdrs, &objp->port)) -				 return FALSE; - -		} else { -		IXDR_PUT_LONG(buf, objp->op_ret); -		IXDR_PUT_LONG(buf, objp->op_errno); -		IXDR_PUT_LONG(buf, objp->port); -		} -		 if (!xdr_string (xdrs, &objp->hostname, ~0)) -			 return FALSE; -		 if (!xdr_string (xdrs, &objp->op_errstr, ~0)) -			 return FALSE; -		return TRUE; -	} else if (xdrs->x_op == XDR_DECODE) { -		buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); -		if (buf == NULL) { -			 if (!xdr_int (xdrs, &objp->op_ret)) -				 return FALSE; -			 if (!xdr_int (xdrs, &objp->op_errno)) -				 return FALSE; -			 if (!xdr_int (xdrs, &objp->port)) -				 return FALSE; - -		} else { -		objp->op_ret = IXDR_GET_LONG(buf); -		objp->op_errno = IXDR_GET_LONG(buf); -		objp->port = IXDR_GET_LONG(buf); -		} -		 if (!xdr_string (xdrs, &objp->hostname, ~0)) -			 return FALSE; -		 if (!xdr_string (xdrs, &objp->op_errstr, ~0)) -			 return FALSE; -	 return TRUE; -	} - -	 if (!xdr_int (xdrs, &objp->op_ret)) -		 return FALSE; -	 if (!xdr_int (xdrs, &objp->op_errno)) -		 return FALSE; -	 if (!xdr_int (xdrs, &objp->port)) -		 return FALSE; -	 if (!xdr_string (xdrs, &objp->hostname, ~0)) -		 return FALSE; -	 if (!xdr_string (xdrs, &objp->op_errstr, ~0)) -		 return FALSE; -	return TRUE; -} - -bool_t -xdr_gf1_cli_deprobe_req (XDR *xdrs, gf1_cli_deprobe_req *objp) -{ -	register int32_t *buf; -        buf = NULL; - -	 if (!xdr_string (xdrs, &objp->hostname, ~0)) -		 return FALSE; -	 if (!xdr_int (xdrs, &objp->port)) -		 return FALSE; -	 if (!xdr_int (xdrs, &objp->flags)) -		 return FALSE; -	return TRUE; -} - -bool_t -xdr_gf1_cli_deprobe_rsp (XDR *xdrs, gf1_cli_deprobe_rsp *objp) -{ -	register int32_t *buf; -        buf = NULL; - -	 if (!xdr_int (xdrs, &objp->op_ret)) -		 return FALSE; -	 if (!xdr_int (xdrs, &objp->op_errno)) -		 return FALSE; -	 if (!xdr_string (xdrs, &objp->hostname, ~0)) -		 return FALSE; -	 if (!xdr_string (xdrs, &objp->op_errstr, ~0)) -		 return FALSE; -	return TRUE; -} - -bool_t  xdr_gf1_cli_peer_list_req (XDR *xdrs, gf1_cli_peer_list_req *objp)  {  	register int32_t *buf;  | 
