summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c6
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-data.c8
2 files changed, 14 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 85fe8eea87d..ef36be14521 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) {
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
index c8397b2aed7..75090ad79ae 100644
--- a/xlators/cluster/afr/src/afr-self-heal-data.c
+++ b/xlators/cluster/afr/src/afr-self-heal-data.c
@@ -95,12 +95,20 @@ afr_sh_data_flush_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
afr_self_heal_t *sh = NULL;
int call_count = 0;
+ int child_index = (long) cookie;
+
local = frame->local;
sh = &local->self_heal;
priv = this->private;
LOCK (&frame->lock);
{
+ if (op_ret == -1) {
+ gf_log (this->name, GF_LOG_DEBUG,
+ "flush or setattr failed on %s on subvolume %s: %s",
+ local->loc.path, priv->children[child_index]->name,
+ strerror (op_errno));
+ }
}
UNLOCK (&frame->lock);