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

requestMetadata should take the md5 and sha256 with expected encodings. #852

Merged
merged 1 commit into from Oct 26, 2017

Conversation

harshavardhana
Copy link
Member

This is done for readability and also to better communicate
the requirements of an API.

@poornas
Copy link
Contributor

poornas commented Oct 22, 2017

build fail needs to be addressed.

@harshavardhana
Copy link
Member Author

build fail needs to be addressed.

Fixed @poornas

Copy link
Contributor

@poornas poornas left a comment

Choose a reason for hiding this comment

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

LGTM.

// It is to indicate that *minio.Object implements io.ReaderAt.
// and such a functionality is used in the subsequent code path.
if isFile(reader) || !isObject(reader) && isReadAt(reader) {
// Verify if reader is *minio.Object, if yes then use a sequential uploader.
Copy link
Member

Choose a reason for hiding this comment

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

The way the comment is split before and after the if-block is confusing. We could have comments describing how we pick sequential or parallel upload strategy in one place.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

This is done for readability and also to better communicate
the requirements of an API.
@deekoder deekoder merged commit 63d2c0d into minio:master Oct 26, 2017
@harshavardhana harshavardhana deleted the fix-core branch October 26, 2017 21:43
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

4 participants