Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21476

ChunkVersion assumes little-endian byte order

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

      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@mongodb.com Mira Carey
            Reporter:
            bryanpkc Bryan Chan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: