Whamcloud - gitweb
b=2425
authorphil <phil>
Sun, 21 Dec 2003 07:46:39 +0000 (07:46 +0000)
committerphil <phil>
Sun, 21 Dec 2003 07:46:39 +0000 (07:46 +0000)
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

index e25189e..6e83f93 100644 (file)
@@ -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)