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

api: Update progress bar concurrently. #734

Merged
merged 1 commit into from
Jun 30, 2017

Conversation

harshavardhana
Copy link
Member

Currently we had a bug where progress bar
was only updated after the upload has been
completed. With streaming signature we
don't need to do that.

This PR fixes this behavior. This PR also
removes a double progress bar jump
in case of fallback buffer based multipart upload.

Currently we had a bug where progress bar
was only updated after the upload has been
completed. With streaming signature we
don't need to do that.

This PR fixes this behavior. This PR also
removes a double progress bar jump
in case of fallback buffer based multipart upload.
@vadmeste
Copy link
Member

Good change, this also fix this issue minio/mc#2169

@@ -113,13 +113,6 @@ func (c Client) putObjectMultipartNoStream(bucketName, objectName string, reader
// Save successfully uploaded part metadata.
partsInfo[partNumber] = objPart

// Update the progress reader for the skipped part.
Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

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

LGTM and tested

@deekoder deekoder merged commit 982f4fb into minio:master Jun 30, 2017
@harshavardhana harshavardhana deleted the fix-progress branch June 30, 2017 18:03
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.

4 participants