From: phil Date: Sun, 21 Dec 2003 07:46:39 +0000 (+0000) Subject: b=2425 X-Git-Tag: 1.0.2~22 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=ab758397c546beda2cbb9302af5c783d4ed14b59;p=fs%2Flustre-release.git 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. --- 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)