MainDocument isn't always in the first section

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Wire Protocol
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      https://github.com/mongodb/mongo-go-driver/blob/d685dac01f10a738bb94f874071281022cddc55d/x/network/wiremessage/msg.go#L174

       

      The main document isn't always in the first document. For instance, running delete in the shell puts the main document (seemingly) last. I think we just need to loop until you find a type 0 section and use that.

              Assignee:
              Unassigned
              Reporter:
              Craig Wilson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: