From d79dda81f9e8dcc6eb0182a4971f0758c0489893 Mon Sep 17 00:00:00 2001 From: niu Date: Thu, 4 Dec 2003 01:10:02 +0000 Subject: [PATCH] b: 2226 r: Phil Set correct last object id when cleaning up orphans during mds setting up. --- lustre/osc/osc_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index 0b8c509..21a2be7 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -224,7 +224,7 @@ int osc_create(struct obd_export *exp, struct obdo *oa, spin_lock(&oscc->oscc_lock); if (rc == -ENOSPC) oscc->oscc_flags |= OSCC_FLAG_NOSPC; - oscc->oscc_last_id = oscc->oscc_next_id - 1; + oscc->oscc_last_id = oa->o_id; spin_unlock(&oscc->oscc_lock); RETURN(rc); -- 1.8.3.1