Whamcloud - gitweb
- replace assert with cwarn when gap is found in objids. This is allowed
authortappro <tappro>
Tue, 13 Jan 2009 07:21:42 +0000 (07:21 +0000)
committertappro <tappro>
Tue, 13 Jan 2009 07:21:42 +0000 (07:21 +0000)
situation due to inode reuse
b:18168
i:adilger, shadow

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);