-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add support converting non-inlined to inlined #15444
Conversation
677f2ee
to
7b45181
Compare
7b45181
to
c507d5a
Compare
This is a feature to allow for inode compaction on large clusters that use a lot of small files spread across a large heirarchy.
c507d5a
to
1678fc7
Compare
Mint Automation
|
@@ -560,6 +579,7 @@ func (er erasureObjects) healObject(ctx context.Context, bucket string, object s | |||
}) | |||
if len(inlineBuffers) > 0 && inlineBuffers[i] != nil { | |||
partsMetadata[i].Data = inlineBuffers[i].Bytes() | |||
partsMetadata[i].SetInlineData() |
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 a bug that is fixed to ensure that the partsMetadata contains the right set of headers to indicate after healing that this is an inlined data.
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.
Tested. LGTM
Description
Add support converting non-inlined to inlined
Motivation and Context
This is a feature to allow for inode compaction on
large clusters that use a lot of small files spread
across a large hierarchy.
How to test this PR?
minio/mc#4175 use this to
To migrate old objects that are not inlined to be
inlined with newer requirements.
Types of changes
Checklist:
commit-id
orPR #
here)