From 550cdfbcf2a5300c926f87403e12f19424bffeac Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 28 Jul 2010 04:23:57 +0000 Subject: fix all clang errors in xlator/protocol Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 1092 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1092 --- xlators/protocol/client/src/client.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'xlators/protocol/client/src/client.c') diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index 97d964434..383f52bc9 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -154,6 +154,9 @@ client_releasedir (xlator_t *this, fd_t *fd) ret = proc->fn (frame, this, &args); } out: + if (ret) + gf_log (this->name, GF_LOG_TRACE, + "releasedir fop failed"); return 0; } @@ -180,6 +183,9 @@ client_release (xlator_t *this, fd_t *fd) ret = proc->fn (frame, this, &args); } out: + if (ret) + gf_log (this->name, GF_LOG_TRACE, + "release fop failed"); return 0; } @@ -1394,10 +1400,15 @@ client_rpc_notify (struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event, if ((ret < 0) || (strcasecmp (handshake, "on"))) { ret = client_handshake (this, conf->rpc); - + if (ret) + gf_log (this->name, GF_LOG_DEBUG, + "handshake msg returned %d", ret); } else { //conf->rpc->connected = 1; ret = default_notify (this, GF_EVENT_CHILD_UP, NULL); + if (ret) + gf_log (this->name, GF_LOG_DEBUG, + "default notify failed"); } break; } -- cgit