summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorNithya Balachandran <nbalacha@redhat.com>2014-08-22 15:16:40 +0530
committerVijay Bellur <vbellur@redhat.com>2014-08-24 21:55:19 -0700
commit3f019874a4726d4b2df7c8e81581b9bed5caeb93 (patch)
tree03b26dd4b7f0323f8e4c2ea1ebddf4b97037fb92 /xlators/cluster
parent75dfbf709126945f45507d7fa9d9b2b7eee68fc2 (diff)
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 <nbalacha@redhat.com> Reviewed-on: http://review.gluster.org/8516 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-common.c11
-rw-r--r--xlators/cluster/dht/src/dht-rename.c2
2 files changed, 8 insertions, 5 deletions
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 : "<null>"));
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,