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

Remove the requirement to create command and reply copies

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: Docs
    • Labels:
      None
    • Major Change

      Definition of done:

      • Document that BSON command and reply byte slices are only valid during the current operation call, function callback, or cursor iteration and must be copied to retain the information for longer.
        • mongo.Cursor.Current
        • event.CommandStartedEvent.Command
        • event.CommandSucceededEvent.Reply
      • Ensure that all command and reply byte slices that persist beyond the current operation call use a full copy of the command or reply.
        • mongo.CommandError.Raw
        • mongo.WriteError.Raw
        • mongo.WriteConcernError.Raw
        • mongo.WriteException.Raw
        • Others?

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: