Whamcloud - gitweb
b: 2226
authorniu <niu>
Thu, 4 Dec 2003 01:10:02 +0000 (01:10 +0000)
committerniu <niu>
Thu, 4 Dec 2003 01:10:02 +0000 (01:10 +0000)
r: Phil

Set correct last object id when cleaning up orphans during mds setting up.

lustre/osc/osc_create.c

index 0b8c509..21a2be7 100644 (file)
@@ -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);