Do not use reinterpret_cast<> to read data in storage engines

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: MMAPv1, Storage
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The mongodb code base now has utilities for reading and writing data from buffers that efficiently abstracts away endianness and alignment issues. For portability among compiler implementations and hardware architectures, the storage engines should use these instead of C-style or reinterpret casts to structures.

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Andy Schwerin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: