Whamcloud - gitweb
- warning instead of assert when gap is found in objids without recovery. That
authortappro <tappro>
Tue, 13 Jan 2009 07:06:37 +0000 (07:06 +0000)
committertappro <tappro>
Tue, 13 Jan 2009 07:06:37 +0000 (07:06 +0000)
may happen due to inode reuse problem
b:18168
i:shadow, adilger

lustre/mds/mds_lov.c

index cd279f3..d48f4cb 100644 (file)
@@ -315,7 +315,8 @@ void mds_lov_update_objids(struct obd_device *obd, struct lov_mds_md *lmm)
                         /* we might have lost precreated objects due to VBR */
                         if (lost > 0 && obd->obd_recovering) {
                                 CDEBUG(D_HA, "GAP in objids is %u\n", lost);
-                                LASSERT(obd->obd_version_recov);
+                                if (!obd->obd_version_recov)
+                                        CWARN("Unexpected gap in objids\n");
                                 /* lsm is allocated if NULL */
                                 mds_log_lost_precreated(obd, &lsm, &stripes,
                                                         data[idx] + 1, lost, i);