From ab758397c546beda2cbb9302af5c783d4ed14b59 Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 21 Dec 2003 07:46:39 +0000 Subject: [PATCH] b=2425 Jacob reported that when MDS/OST recovery requires new objects to be created, the OST throws an assertion. Bug 2425 remains open to track the creation of many more tests for missing MDS/OST recovery cases. --- lustre/obdfilter/filter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index e25189e..6e83f93 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -1586,9 +1586,8 @@ static int filter_should_precreate(struct obd_export *exp, struct obdo *oa, /* delete orphans request */ if ((oa->o_valid & OBD_MD_FLFLAGS) && (oa->o_flags & OBD_FL_DELORPHAN)) { - LASSERT(diff <= 0); - if (diff == 0) - RETURN(0); + if (diff >= 0) + RETURN(diff); filter_destroy_precreated(exp, oa, filter); rc = filter_update_last_objid(obd, group, 0); if (rc) -- 1.8.3.1