Expose a function in the shell to compare BSON at a byte level

XMLWordPrintableJSON

    • Fully Compatible
    • TIG 2016-09-19
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      bsonWoCompare({a: NumberLong(0)}, {a: NumberInt(0)}); returns 0 in the shell, which prevents us from detecting type mismatches in documents when there's a dbhash mismatch across replica set nodes.

      We need to be able to compare bytes instead of just BSON representations to make it easier to debug issues found by the dbhash testing hook.

            Assignee:
            Jonathan Abrahams (Inactive)
            Reporter:
            Kamran K. (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: