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

HDDS-2464. Avoid unnecessary allocations for FileChannel.open call #147

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

ChunkUtils calls FileChannel#open(Path, OpenOption...). Vararg array elements are then added to a new HashSet to be passed to FileChannel#open(Path, Set<? extends OpenOption>, FileAttribute<?>...). We can call the latter directly instead.

https://issues.apache.org/jira/browse/HDDS-2464

How was this patch tested?

Ran TestChunkUtils.

@nandakumar131
Copy link
Contributor

Test failures are not related to this change.

@nandakumar131 nandakumar131 merged commit fe85445 into apache:master Nov 13, 2019
@adoroszlai adoroszlai deleted the HDDS-2464 branch November 13, 2019 17:12
@adoroszlai
Copy link
Contributor Author

Thanks @nandakumar131 for reviewing and merging it.

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