Fix a bug with how sbe::bson::convertFrom() computes the size of a BinData

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.2.0, 5.1.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The logic for handling BinDatas in sbe::bson::convertFrom() differs from what sbe::value::copyValue() does. I carefully read through how the BinData type is described at bsonspec.org and I looked at how BinData is implemented in the classic execution engine, and it appears that the logic for handling BinDatas in sbe::bson::convertFrom() is wrong and that sbe::value::copyValue()'s implementation is correct.

      The goals of this task is to update how sbe::bson::convertFrom() handles BinDatas to match what sbe::value::copyValue() does.

              Assignee:
              Drew Paroski
              Reporter:
              Drew Paroski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: