-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curvefs/client: rm create fs in init #905
curvefs/client: rm create fs in init #905
Conversation
cd7524d
to
c764b58
Compare
recheck |
5 similar comments
recheck |
recheck |
recheck |
recheck |
recheck |
e512143
to
b52da90
Compare
recheck |
curvefs/src/client/fuse_client.cpp
Outdated
<< ", fsName = " << fsName; | ||
return ret2; | ||
} | ||
LOG(ERROR) << "The fsName not exist, try to CreateFs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
”try to CreateFs“ is not need.
} else if (response_->statuscode() == mds::FSStatusCode::OK) { | ||
// create success | ||
} else if (response_->statuscode() == mds::FSStatusCode::OK || | ||
response_->statuscode() == mds::FSStatusCode::FS_EXIST) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe fs is truely exist, still return success?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe fs is truely exist, still return success?
This is a bug that was fixed by other PRs, and I forgot to modify it here.
// create success | ||
} else if (response_->statuscode() == mds::FSStatusCode::OK || | ||
response_->statuscode() == mds::FSStatusCode::FS_EXIST) { | ||
// create success or fs exist | ||
std::cout << "create fs success." << std::endl; | ||
} else if (response_->statuscode() == mds::FSStatusCode::FS_EXIST) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if so, this branch will never be entered
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bug that was fixed by other PRs, and I forgot to modify it here.
b52da90
to
57d5fad
Compare
recheck |
1. curvefs_tool has add create-fs 2. fix some error output
57d5fad
to
0deeeb4
Compare
recheck |
2 similar comments
recheck |
recheck |
recheck |
recheck |
What problem does this PR solve?
Issue Number: close #891
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List