From 7b9b1f3498c1c76b9c7ac3f3c2f0672f75254ad0 Mon Sep 17 00:00:00 2001 From: braam Date: Wed, 27 Aug 2003 05:53:38 +0000 Subject: [PATCH] - open replay should NOT go to the OSC which is unreachable during recovery - minor fix to the test - remove the wrong code that did osc create replay --- lustre/osc/osc_create.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index 71f415e..80bc9dc 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -161,17 +161,6 @@ int osc_create(struct lustre_handle *exph, struct obdo *oa, RETURN(rc); } - /* this is the special case where we recover and only increase the next_id */ - if (oa->o_valid == (OBD_MD_FLID | OBD_MD_FLFLAGS) && - oa->o_flags == OBD_FL_IDONLY) { - spin_lock(&oscc->oscc_lock); - /* this is the recovery case: be firm for now */ - LASSERT(lsm->lsm_object_id == oscc->oscc_next_id); - oscc->oscc_next_id++; - spin_unlock(&oscc->oscc_lock); - RETURN(0); - } - while (try_again) { spin_lock(&oscc->oscc_lock); if (oscc->oscc_last_id >= oscc->oscc_next_id) { -- 1.8.3.1