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

[XCache] Fix options argument to pgwrite. #1334

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

smithdh
Copy link
Contributor

@smithdh smithdh commented Nov 20, 2020

Last argument of pgWrite() is opts rather than a size. So in this patch I set the opts to 0. I don't think there's any advantage to specify Verify here, since the data are already available to a cache client by reading from RAM so it would be late to discover a mismatch.

The data almost certainly do match their checksums (if present) since they came from pgRead, so either XrdCl verified received checksums or they were generated based on data received over TLS. (I think XrdCl does always verify received checksums, but protocol spec says it only has to verify if the connection is not TLS. If client didn't verify they could conceivably mismatch if origin sent them mismatching).

@osschar osschar merged commit c2b9947 into xrootd:master Nov 20, 2020
@osschar
Copy link
Contributor

osschar commented Nov 20, 2020

Thank you! :)

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

2 participants