[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: SERVER-20274 Replace reinterpret_cast with DataView in OplogDocWriter::writeDocument
Branch: master
https://github.com/mongodb/mongo/commit/bff13133884c776bd83d373342bff97a36c7ec12

Generated at Thu Feb 08 03:53:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.