Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-655

MainDocument isn't always in the first section

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Wire Protocol
    • Labels:
      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 Unassigned
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: