ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Query Execution
    • QE 2026-10-26
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Every implementation comparing DBPointers tests the equality of the namespace, except for Value::compare:

      BSON https://github.com/10gen/mongo/blob/55a2a33250f697425aed2852795121ee6979c7e6/src/mongo/bson/bsonelement.cpp#L376-L382

      keystring encoding https://github.com/10gen/mongo/blob/55a2a33250f697425aed2852795121ee6979c7e6/src/mongo/db/storage/key_string/key_string.cpp#L843

      SBE https://github.com/10gen/mongo/blob/dcad950f287d2b11e5f096e8cf07b0710a8e5e34/src/mongo/db/exec/sbe/values/value.cpp#L686

      So the semantics are set, but Value doesn't follow them. In this diff we fix the issue by comparing ns and add testing

            Assignee:
            Matt Boros
            Reporter:
            Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: