From 04953dbfa9772f5f162c83e9af4c642b26d41806 Mon Sep 17 00:00:00 2001 From: tappro Date: Tue, 13 Jan 2009 07:06:37 +0000 Subject: [PATCH] - warning instead of assert when gap is found in objids without recovery. That may happen due to inode reuse problem b:18168 i:shadow, adilger --- lustre/mds/mds_lov.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index cd279f3..d48f4cb 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -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); -- 1.8.3.1