From dabd42ac6944f68fe6dcc45b00c14cc0267d6393 Mon Sep 17 00:00:00 2001 From: rread Date: Fri, 29 Aug 2003 00:24:23 +0000 Subject: [PATCH] * Make sure we don't delete the orphans until after recovery has finished. This is done in mds_postrecovery, which should now be called instead of mds_lov_set_nextid. * When we delete orphans, make sure the MDS's and OST's last_id get dropped back, so subsequent creates will actually create objects. --- lustre/osc/osc_create.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index 863f9b3..db50710 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -156,6 +156,14 @@ int osc_create(struct obd_export *exp, struct obdo *oa, oa->o_flags == OBD_FL_DELORPHAN) { oa->o_id = oscc->oscc_next_id - 1; rc = osc_real_create(oscc->oscc_exp, oa, ea, NULL); + + spin_lock(&osccd->osccd_lock); + spin_lock(&oscc->oscc_lock); + oscc->oscc_status = rc; + oscc->oscc_last_id = oscc->oscc_next_id - 1; + spin_unlock(&oscc->oscc_lock); + spin_unlock(&osccd->osccd_lock); + RETURN(rc); } -- 1.8.3.1