[SERVER-20274] OplogDocWriter::writeDocument writes incorrect document size on big-endian system Created: 03/Sep/15 Updated: 11/Mar/16 Resolved: 25/Jan/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Portability |
| Affects Version/s: | 3.1.7 |
| Fix Version/s: | 3.3.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Bryan Chan | Assignee: | Tess Avitabile (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | Linux |
| Sprint: | Platforms F (01/29/16) |
| Participants: |
| Description |
|
The size of a document is written to a buffer in native byte order, via a reinterpret_cast. This causes incorrect output on a big-endian system. |
| Comments |
| Comment by Githook User [ 25/Jan/16 ] |
|
Author: {u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}Message: |