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

Adds missing file close logic #674

Merged
merged 2 commits into from
Jul 9, 2018
Merged

Conversation

ebozduman
Copy link
Collaborator

Fixes #673

Adds the missing with open construct block to automatically close the opened files.
Also updated the examples for put_object command.

@harshavardhana harshavardhana requested review from poornas and vadmeste and removed request for poornas July 5, 2018 06:58
@poornas
Copy link
Contributor

poornas commented Jul 5, 2018

@ebozduman, the put_object example in Api.md could also be changed to use with open though the code snippet is required to just show minimal info to call the sdk. This suggestion is just for consistency

vadmeste
vadmeste previously approved these changes Jul 5, 2018
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

@ebozduman
Copy link
Collaborator Author

Added matching doc changes

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

@kannappanr kannappanr merged commit f738d76 into minio:master Jul 9, 2018
@ebozduman ebozduman deleted the unclosed_files branch July 9, 2018 17:44
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.

Leaking file descriptors
4 participants