Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
CBG-3895 allow xattrs to be deleted at the same time as they are updated #6791
CBG-3895 allow xattrs to be deleted at the same time as they are updated #6791
Changes from all commits
215ecf8
bca7336
dc258d0
99223fb
ac325da
89a7faf
9b33dec
c98d872
56fe47a
dab6d33
d963002
8c13e35
a2dd161
fb7173b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
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.
Same question as above - do the xattrs have to already exist to use StoreSemanticsReplace?
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.
Replace implies that the body has to exist, it does not care about the presence of the xattr. This is covered by the test
TestWriteWithXattrs
but you should make sure to confirm.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.
We don't do this check in other methods that attempt to delete xattrs (like updateXattrs). Is it needed there also?
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.
I think this question is still unresolved - any details on this?
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.
updateXattrs
is a private function and this is checked in the callers to this function inWriteTombstoneWithXattrs
andWriteWithXattrs
.UpdateXattrs
doesn't allow you to delete xattrs since that's not yet needed. I think this has the potential to go wrong if the code is refactored and I like the idea to put this check inupdateXattrs
as well, though it will not presently be hit.