Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mds: commit new dirfrag before splitting it
Commit 6e013cd (properly set COMPLETE flag when merging dirfrags) tries solving the issue that new dirfrag's COMPLETE flag gets lost if MDS splits the new dirfrag, then the fragment operation gets rolled back. It records the original dirfrag's COMPLETE flag when EFragment PREPARE event is encountered. If the fragment operation needs to rollback, The COMPLETE flag is journaled in corresponding EFragment ROLLBACK event. This is problematic when the ROLLBACK event and the "mkdir" event belong to different log segments. After the log segment that contains the "mkdir" event is trimmed, the dirfrag can not be considered as complete. The fix is commit new dirfrag before splitting it. After dirfrag is committed to object store, losing COMPLETE flag is not a big deal. Signed-off-by: Yan, Zheng <zheng.z.yan@ntel.com>
- Loading branch information
Yan, Zheng
committed
Mar 29, 2014
1 parent
0bb911c
commit 07ccc4e
Showing
3 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters