summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-11-30 02:27:12 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-30 02:53:41 -0800
commitd21e0108638bdde5f46361aadb370061293c8146 (patch)
tree1bbcf39a250b06b6a3e9619963c085a85ce67431 /xlators/cluster/afr/src/afr-self-heal-common.c
parent357e464ffee8cbed84e0c34727b9226adbdb7bd2 (diff)
cluster/afr: Refactored lookup_cbk and introduce precedence of errors.
Error handling in afr_lookup_cbk was faulty because it did not give priority to errors such as ESTALE over ENOENT, and ENOENT over other errors. This patch fixes that, and also breaks up afr_lookup_cbk into multiple logical functions. Signed-off-by: Vikas Gorur <vikas@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 205 ([ glusterfs 2.0.6rc4 ] - Hard disk failure not handled correctly) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=205
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c4
1 files changed, 4 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 ab28aa68128..a8160f4e26b 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -1113,6 +1113,10 @@ sh_missing_entries_create (call_frame_t *frame, xlator_t *this)
} else {
if (type) {
if (type != (sh->buf[i].st_mode & S_IFMT))
+ gf_log (this->name, GF_LOG_TRACE,
+ "file %s is govinda!",
+ local->loc.path);
+
govinda_gOvinda = 1;
} else {
sh->source = i;