Navigation Menu

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

PropertyRecord.getType() now returns PropertyType instead of int #8771

Closed
wants to merge 1 commit into from
Closed

PropertyRecord.getType() now returns PropertyType instead of int #8771

wants to merge 1 commit into from

Conversation

digitalstain
Copy link
Contributor

Reading the property type and converting to a PropertyType value
requires bit shifting and masking that is not achieved by simply
using the type int value as read from disk. This can lead to
improper identification of the record type during recovery, among
other scenarios.
This patch changes the PropertyRecord.getType() method to return
PropertyType, properly parsed. It adds a getTypeAsInt() method
to allow for access to the raw int value for serialization
purposes.

Reading the property type and converting to a PropertyType value
 requires bit shifting and masking that is not achieved by simply
 using the type int value as read from disk. This can lead to
 improper identification of the record type during recovery, among
 other scenarios.
This patch changes the PropertyRecord.getType() method to return
 PropertyType, properly parsed. It adds a getTypeAsInt() method
 to allow for access to the raw int value for serialization
 purposes.
@tinwelint
Copy link
Member

Replaced by #8780

@digitalstain digitalstain deleted the 3.1-property-record-type-typing branch April 6, 2017 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants