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

Commits on Feb 6, 2017

  1. PropertyRecord.getType() now returns PropertyType instead of int

    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.
    digitalstain committed Feb 6, 2017
    Copy the full SHA
    73c4cf9 View commit details
    Browse the repository at this point in the history