[GODRIVER-2747] Remove the requirement to create command and reply copies Created: 03/Feb/23  Updated: 08/Jan/24

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Improvement Priority: Unknown
Reporter: Matt Dale Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Go Driver 2.0: Driver
Backwards Compatibility: 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?

Generated at Thu Feb 08 08:39:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.