diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-12-02 10:28:34 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-02 10:29:26 -0800 |
commit | 855a57a1f9c05d627c22f3091a7e0603d3e4092f (patch) | |
tree | 089a40653fe6e3ed8c1a9a476b71dfa0bf3746f0 /xlators/cluster | |
parent | c04c1a170dcc605efcf80c8ae2674b69488b591d (diff) |
cluster/afr: Fix conditional typo.
Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
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
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |