Fix CodeFragment::toString()

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • QE 2022-06-27, QE 2022-07-11, QE 2022-07-25
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The VM bytecode toString() function does not work when certain instructions are present (fillEmptyConst, getFieldConst, traversePConst, traverseFConst, and others). This is because the instruction pointer does not advance correctly. We should fix this, and add a sanity test for toString().

      https://github.com/mongodb/mongo/blob/6bd5618937542267553791332394c571973740eb/src/mongo/db/exec/sbe/vm/vm.cpp#L175

            Assignee:
            Parker Felix
            Reporter:
            Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: