summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-12-02 12:20:10 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-02 10:29:33 -0800
commit7d740b2c01224019525fda01235f56c3a4416747 (patch)
tree45ad85bff0b3625fb749d04f6da312163a6d9a76 /xlators/cluster/afr/src/afr-self-heal-common.c
parent14c5492a2c03728f18a20125b785f43f441dbfd5 (diff)
cluster/afr: Add log messages when setattr fails in self-heal.
Signed-off-by: Vikas Gorur <vikas@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 146 (Add setattr FOP) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c
index 85fe8eea8..ef36be145 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -838,6 +838,12 @@ sh_destroy_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
local = frame->local;
+ if (op_ret == -1) {
+ gf_log (this->name, GF_LOG_DEBUG,
+ "setattr on %s failed: %s",
+ local->loc.path, strerror (op_errno));
+ }
+
call_count = afr_frame_return (frame);
if (call_count == 0) {