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

ChunkVersion assumes little-endian byte order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.2
    • Component/s: Portability
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            jason.carey Jason Carey
            Reporter:
            bryanpkc Bryan Chan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: