ChunkVersion assumes little-endian byte order

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.2
    • Affects Version/s: None
    • Component/s: Portability
    • None
    • Fully Compatible
    • ALL
    • Platforms 10 (02/19/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The _minor and _major fields in ChunkVersion are unioned with a 64-bit _combined field, which are used for fast reads/writes and comparisons in little-endian order. This doesn't work on big-endian systems and causes failures in ChunkManagerTests that can be worked around by providing slower but portable versions of the accessor methods and comparison operators when MONGO_CONFIG_BYTE_ORDER == 4321.

            Assignee:
            Mira Carey
            Reporter:
            Bryan Chan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: