summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorAnush Shetty <anush@gluster.com>2010-05-06 05:52:40 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-08 06:37:25 -0700
commit9dabc8b0a9a2582004e3f8a14e5d8cac201ce01a (patch)
tree5ee13c9d18e33276b92b94cbbb207e3f418a9e8e /xlators/cluster
parentdce48d4793d76c38143dc55fe45b30ead12ffbf5 (diff)
Fix for crash in stripe_entry_self_heal
Signed-off-by: Anush Shetty <anush@gluster.com> Signed-off-by: Anush Shetty <anush@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 887 (Crash in stripe_entry_self_heal) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=887
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/stripe/src/stripe.c2
1 files changed, 1 insertions, 1 deletions
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,