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

curvefs/client: fix s3 object will not be removed #2589

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

wuhongsong
Copy link
Contributor

@wuhongsong wuhongsong commented Jun 29, 2023

What problem does this PR solve?

When the file is deleted, the object will not be deleted forever.

the objects that will be removed is based on chunklist, now , chunklist is empty always

Issue Number: #xxx

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

@wuhongsong
Copy link
Contributor Author

cicheck

@@ -208,6 +208,16 @@ MetaStatusCode TrashImpl::DeleteInodeAndData(const TrashItem &item) {
clientAdaptorOption.objectPrefix = s3Info.objectprefix();
s3Adaptor_->Reinit(clientAdaptorOption, s3Info.ak(), s3Info.sk(),
s3Info.endpoint(), s3Info.bucketname());
ret = inodeStorage_->PaddingInodeS3ChunkInfo(item.fsId,
item.inodeId, inode.mutable_s3chunkinfomap());
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation.

@YunhuiChen
Copy link
Contributor

cicheck

2 similar comments
@YunhuiChen
Copy link
Contributor

cicheck

@YunhuiChen
Copy link
Contributor

cicheck

@wuhongsong wuhongsong merged commit 7e8bc18 into opencurve:master Jun 30, 2023
3 checks passed
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.

None yet

4 participants