From 3f019874a4726d4b2df7c8e81581b9bed5caeb93 Mon Sep 17 00:00:00 2001 From: Nithya Balachandran Date: Fri, 22 Aug 2014 15:16:40 +0530 Subject: Cluster/DHT : Additional log messages Adding log messages in the rename and lookup calls to help with debugging. Change-Id: I13b1c6f98fb49ead45362550c46359ab1f9028c0 BUG: 1130888 Signed-off-by: Nithya Balachandran Reviewed-on: http://review.gluster.org/8516 Tested-by: Gluster Build System Reviewed-by: Raghavendra G --- xlators/cluster/dht/src/dht-common.c | 11 +++++++---- xlators/cluster/dht/src/dht-rename.c | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index ef9383ca6ad..f4cbf8d0744 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -1279,9 +1279,9 @@ preset_layout: } gf_msg_debug (this->name, 0, - "Linking file %s on %s to %s (hash)(gfid = %s)", - local->loc.path, cached_subvol->name, - hashed_subvol->name, gfid); + "Creating linkto file on %s(hash) to %s on %s (gfid = %s)", + hashed_subvol->name, local->loc.path, + cached_subvol->name, gfid); ret = dht_linkfile_create (frame, dht_lookup_linkfile_create_cbk, this, @@ -1456,7 +1456,10 @@ unlock: } else { gf_log (this->name, GF_LOG_INFO, "attempting deletion of stale linkfile " - "%s on %s", loc->path, subvol->name); + "%s on %s (hashed subvol is %s)", + loc->path, subvol->name, + (local->hashed_subvol? + local->hashed_subvol->name : "")); STACK_WIND (frame, dht_lookup_unlink_cbk, subvol, subvol->fops->unlink, loc, diff --git a/xlators/cluster/dht/src/dht-rename.c b/xlators/cluster/dht/src/dht-rename.c index 3b023343231..ce7df8442bf 100644 --- a/xlators/cluster/dht/src/dht-rename.c +++ b/xlators/cluster/dht/src/dht-rename.c @@ -1029,7 +1029,7 @@ dht_rename (call_frame_t *frame, xlator_t *this, local->dst_hashed = dst_hashed; local->dst_cached = dst_cached; - gf_msg_trace (this->name, 0, + gf_msg_debug (this->name, 0, "renaming %s (hash=%s/cache=%s) => %s" " (hash=%s/cache=%s)", oldloc->path, src_hashed->name, src_cached->name, -- cgit