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

Remove the requirement to create command and reply copies

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • 2.0.0
    • None
    • None
    • None
    • Major Change

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: