Remove the requirement to create command and reply copies

XMLWordPrintableJSON

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

      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
              Reporter:
              Matt Dale
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: