forked from cubefs/cubefs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid inode unlink due to net error
When creating a file, the client will create inode first and then send a create dentry request. If create dentry request fails due to a net error (e.g. send the request to metanode but timed out when getting response), there is a tiny chance that the dentry is created successfully on metanode. Thus we cannot unlink the inode created previously because we would rather leave the orphan inode than create an orphan dentry. Signed-off-by: Shuoran Liu <[email protected]>
- Loading branch information
1 parent
4212ac5
commit 4b7f438
Showing
1 changed file
with
13 additions
and
13 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