Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
c384a90
commit bfed2b1
Showing
6 changed files
with
50 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters