From 700904843533057caaa70f0540e9996b590b636a Mon Sep 17 00:00:00 2001 From: tappro Date: Sat, 21 Oct 2006 23:23:17 +0000 Subject: [PATCH] - fix issues with create recovery --- lustre/mdd/mdd_dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/mdd/mdd_dir.c b/lustre/mdd/mdd_dir.c index 964217f..b049243 100644 --- a/lustre/mdd/mdd_dir.c +++ b/lustre/mdd/mdd_dir.c @@ -1134,7 +1134,7 @@ static int mdd_create(const struct lu_env *env, /* replay creates has objects already */ if (spec->u.sp_ea.no_lov_create) { CDEBUG(D_INFO, "we already have lov ea\n"); - LASSERT(lmm != NULL); + LASSERT(lmm == NULL); lmm = (struct lov_mds_md *)spec->u.sp_ea.eadata; lmm_size = spec->u.sp_ea.eadatalen; } @@ -1194,7 +1194,7 @@ cleanup: } /* finish mdd_lov_create() stuff */ mdd_lov_create_finish(env, mdd, rc); - if (lmm) + if (lmm && !spec->u.sp_ea.no_lov_create) OBD_FREE(lmm, lmm_size); mdd_pdo_write_unlock(env, mdd_pobj, dlh); out_trans: -- 1.8.3.1