[SERVER-22567] GeoHash::unhash_fast is wrong on big endian Created: 10/Feb/16  Updated: 22/Feb/16  Resolved: 11/Feb/16

Status: Closed
Project: Core Server
Component/s: Portability
Affects Version/s: 3.3.1
Fix Version/s: 3.3.2

Type: Bug Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 10 (02/19/16)
Participants:

 Description   

GeoHash::unhash_fast is wrong on big endian (it involves a reinterpret_cast on the bytes of a long long, goes in the wrong order on big endian).

We should eventually make it correct, but for now simply using unhash_slow will do the job



 Comments   
Comment by Githook User [ 11/Feb/16 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey', u'email': u'jcarey@argv.me'}

Message: SERVER-22567 use GeoHash::unhash_slow on big endian
Branch: master
https://github.com/mongodb/mongo/commit/48a6932e83dc61f774e1c5d943f59bec889b7183

Generated at Thu Feb 08 04:00:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.