diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-12-02 12:20:10 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-02 10:29:33 -0800 |
commit | 7d740b2c01224019525fda01235f56c3a4416747 (patch) | |
tree | 45ad85bff0b3625fb749d04f6da312163a6d9a76 /xlators/cluster/afr | |
parent | 14c5492a2c03728f18a20125b785f43f441dbfd5 (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')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 6 | ||||
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-data.c | 8 |
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 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) { diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index c8397b2ae..75090ad79 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); |