Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38623

Make safeNumberLongForHash consistent between PPC and other architectures

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • ALL
    • Query 2019-04-08

      As noted in SERVER-37183, the hash function used for double values performs an undefined cast when hashing the value 2^63, and the resulting value is different on PPC than on other supported platforms. We should make this hash value consistent across architectures, but before we do that, we need a path for existing PPC installations to rehash any documents with a hashed index key that includes a 2^63 double value.

            Assignee:
            justin.seyster@mongodb.com Justin Seyster
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: