[SERVER-16033] Do not use reinterpret_cast<> to read data in storage engines Created: 07/Nov/14 Updated: 14/Sep/18 Resolved: 14/Sep/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | MMAPv1, Storage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andy Schwerin | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
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. |