From 9dabc8b0a9a2582004e3f8a14e5d8cac201ce01a Mon Sep 17 00:00:00 2001 From: Anush Shetty Date: Thu, 6 May 2010 05:52:40 +0000 Subject: Fix for crash in stripe_entry_self_heal Signed-off-by: Anush Shetty Signed-off-by: Anush Shetty Signed-off-by: Anand V. Avati BUG: 887 (Crash in stripe_entry_self_heal) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=887 --- xlators/cluster/stripe/src/stripe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/stripe/src/stripe.c') diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index fae9f755533..0d01ff8e255 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -591,7 +591,7 @@ stripe_entry_self_heal (call_frame_t *frame, xlator_t *this, st_mode_from_ia (local->stbuf.ia_prot, local->stbuf.ia_type), 0); } - if (IA_ISREG (local->stbuf.ia_type)) { + if (IA_ISDIR (local->stbuf.ia_type)) { STACK_WIND (rframe, stripe_sh_make_entry_cbk, trav->xlator, trav->xlator->fops->mkdir, &local->loc, st_mode_from_ia (local->stbuf.ia_prot, -- cgit