Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metanode: fix create dentry exist error
In the following scenario, -> client issues a create dentry request to metanode; -> meta node receives the request and applies the raft log; -> meta node gets killed before sending a response to client; -> client get a EOF error and retries to the new raft leader; -> the new meta raft leader send a dentry exist error to client; This error happens if create dentry request is applied but metanode is not managed to response to client. So if the create dentry request has the same parent inode id, name and inode id, then we can treat it as successful. Signed-off-by: Shuoran Liu <shuoranliu@gmail.com>
- Loading branch information