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

fix copy from workloads #422

Merged
merged 1 commit into from
Jun 2, 2021
Merged

fix copy from workloads #422

merged 1 commit into from
Jun 2, 2021

Conversation

tonicmuroq
Copy link
Contributor

tar writer is not closed properly, which leads the content not flushed properly, which leads the content in tar ball truncated, BSD tar can deal with this, but GNU tar says no...

msg.Data = p[:n]
if err = stream.Send(msg); err != nil {
v.logUnsentMessages(ctx, "Copy", err, m)
if n > 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure if we need to send message only when n>0

Copy link
Contributor Author

@tonicmuroq tonicmuroq Jun 2, 2021

Choose a reason for hiding this comment

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

when client uses this, an empty []byte{} is meaningless

@tonicmuroq tonicmuroq requested a review from jschwinger233 June 2, 2021 09:47
@CMGS CMGS merged commit f643a6c into master Jun 2, 2021
@CMGS CMGS deleted the fix-copy branch June 4, 2021 03:19
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.

2 participants