Skip to content

Conversation

@spkrka
Copy link
Contributor

@spkrka spkrka commented Jun 4, 2020

This does not change any behaviour, but it would
prevent bugs in the future if something tries to write to the buffer.

If fileMode is MEMORY_MAPPED, this would already fail, so
this extra protection only really applies to the MEMORY mode.

This does not change any behaviour, but it would
prevent bugs in the future if something tries to write to the buffer.

If fileMode is MEMORY_MAPPED, this would already fail, so
this extra protection only really applies to the MEMORY mode.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 90.939% when pulling b09b1ee on spkrka:krka/buf_readonly into a7eaec6 on maxmind:master.

Copy link
Member

@oschwald oschwald left a comment

Choose a reason for hiding this comment

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

Thanks!

@oschwald oschwald merged commit 95f4c1f into maxmind:master Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants