summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-helpers.c
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2015-08-13 11:49:57 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-08-19 10:43:05 -0700
commitd290dc62e474cfe4a305f503dff815c73d3f2578 (patch)
tree07f0b56f7a15f2359c21486c4d5dfd964d80c153 /xlators/protocol/server/src/server-helpers.c
parent963ce60e0d5edc418ae3cdc954fca350a5e3a131 (diff)
protocol-client/server: Minor logging improvements for better debugging
Adding some log messages to protocol client and server to ease the debugging process. Change-Id: I84a05fcde7189d6e6ad5c37c1bbffb148d123517 BUG: 1227667 Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-on: http://review.gluster.org/11903 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/protocol/server/src/server-helpers.c')
-rw-r--r--xlators/protocol/server/src/server-helpers.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c
index 7820e1ce907..0971e84298c 100644
--- a/xlators/protocol/server/src/server-helpers.c
+++ b/xlators/protocol/server/src/server-helpers.c
@@ -355,8 +355,11 @@ server_connection_cleanup (xlator_t *this, client_t *client,
cd_ret = gf_client_disconnect (client);
}
- if (fdentries != NULL)
+ if (fdentries != NULL) {
+ gf_msg_debug (this->name, 0, "Performing cleanup on %d "
+ "fdentries", fd_count);
ret = do_fd_cleanup (this, client, fdentries, fd_count);
+ }
else
gf_msg (this->name, GF_LOG_INFO, 0, PS_MSG_FDENTRY_NULL,
"no fdentries to clean");
@@ -1058,6 +1061,9 @@ server_cancel_grace_timer (xlator_t *this, client_t *client)
LOCK (&serv_ctx->fdtable_lock);
{
if (serv_ctx->grace_timer) {
+ gf_msg (this->name, GF_LOG_INFO, 0,
+ PS_MSG_GRACE_TIMER_CANCELLED,
+ "Cancelling the grace timer");
timer = serv_ctx->grace_timer;
serv_ctx->grace_timer = NULL;
}