Skip to content
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

curve-fuse: only update dirty inode metadata #1853

Merged
merged 2 commits into from
Sep 6, 2022

Conversation

wu-hanqing
Copy link
Contributor

@wu-hanqing wu-hanqing commented Aug 23, 2022

Signed-off-by: Hanqing Wu wuhanqing@corp.netease.com

What problem does this PR solve?

Issue Number: #1845

Problem Summary:

What is changed and how it works?

What's Changed:

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@wu-hanqing wu-hanqing force-pushed the issue-1845 branch 3 times, most recently from df0b981 to 39033e9 Compare August 24, 2022 05:43
@wu-hanqing
Copy link
Contributor Author

recheck

2 similar comments
@wu-hanqing
Copy link
Contributor Author

recheck

@wu-hanqing
Copy link
Contributor Author

recheck

@@ -336,19 +337,25 @@ CURVEFS_ERROR InodeWrapper::UnLinkLocked(uint64_t parent) {
auto err = FlushVolumeExtent();
if (err != CURVEFS_ERROR::OK) {
LOG(ERROR) << "Flush volume extent failed, inodeid: "
<< inode_.inodeid() << ", error: " << err;
<< inode_.inodeid() << ", error: " << err;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output alignment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

<< ", MetaStatusCode = " << ret
<< ", MetaStatusCode_Name = " << MetaStatusCode_Name(ret)
<< ", inodeid = " << inode_.inodeid();
<< ", MetaStatusCode = " << ret
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output alignment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

@@ -358,8 +365,8 @@ CURVEFS_ERROR InodeWrapper::UnLinkLocked(uint64_t parent) {

CURVEFS_ERROR
InodeWrapper::UpdateInodeStatus(InodeOpenStatusChange statusChange) {
MetaStatusCode ret =
metaClient_->UpdateInodeAttrWithOutNlink(inode_, statusChange);
MetaStatusCode ret = metaClient_->UpdateInodeAttrWithOutNlink(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UpdateInodeStatus this function is not used anymore, you can delete it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

@wu-hanqing wu-hanqing force-pushed the issue-1845 branch 3 times, most recently from 918325c to a65138b Compare August 26, 2022 01:42
@wu-hanqing
Copy link
Contributor Author

recheck

Signed-off-by: Hanqing Wu <wuhanqing@corp.netease.com>
Signed-off-by: Hanqing Wu <wuhanqing@corp.netease.com>
@wu-hanqing
Copy link
Contributor Author

recheck

2 similar comments
@wu-hanqing
Copy link
Contributor Author

recheck

@YunhuiChen
Copy link
Contributor

recheck

@wu-hanqing wu-hanqing merged commit 2ad2362 into opencurve:master Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants