From 855a57a1f9c05d627c22f3091a7e0603d3e4092f Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Wed, 2 Dec 2009 10:28:34 +0000 Subject: cluster/afr: Fix conditional typo. Signed-off-by: Vikas Gorur Signed-off-by: Anand V. Avati BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170 --- xlators/cluster/afr/src/afr-self-heal-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/afr') diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index 7a888657d..85fe8eea8 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -1121,12 +1121,13 @@ sh_missing_entries_create (call_frame_t *frame, xlator_t *this) enoent_count++; } else { if (type) { - if (type != (sh->buf[i].st_mode & S_IFMT)) + 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; type = sh->buf[i].st_mode & S_IFMT; -- cgit