Skip to content
Snippets Groups Projects
Commit d79dda81 authored by Niu Yawei's avatar Niu Yawei
Browse files

b: 2226

r: Phil

Set correct last object id when cleaning up orphans during mds setting up.
parent 7c13e933
No related branches found
No related tags found
No related merge requests found
...@@ -224,7 +224,7 @@ int osc_create(struct obd_export *exp, struct obdo *oa, ...@@ -224,7 +224,7 @@ int osc_create(struct obd_export *exp, struct obdo *oa,
spin_lock(&oscc->oscc_lock); spin_lock(&oscc->oscc_lock);
if (rc == -ENOSPC) if (rc == -ENOSPC)
oscc->oscc_flags |= OSCC_FLAG_NOSPC; 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); spin_unlock(&oscc->oscc_lock);
RETURN(rc); RETURN(rc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment