From d21e0108638bdde5f46361aadb370061293c8146 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Mon, 30 Nov 2009 02:27:12 +0000 Subject: 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 Signed-off-by: Anand V. Avati 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 --- xlators/cluster/afr/src/afr-self-heal-common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c') 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; -- cgit