|
During orphan cleanup, OST should always update last_id, even though the previous threads might already cleanup orphans. Considering following case
1. mds start, send clear orphan req to OST, and OST begin to clear orphan, but then MDS fails before it gets reply. i.e. it does not update next_id yet.
2. mds restart and send clear orphan req again to OST with original next_id, then it found the orphan has been cleanup, so still reply with the original id, which is wrong, and we should update next_id in this case.
|