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

Add nil client check when verifying transaction status in (Operation).Execute

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.4.7
    • None
    • None
    • None
    • Not Needed

    Description

      If an Operation is constructed with a nil client and then executed, it's possible to panic in a couple spots when verifying if the Operation is in a transaction:

      • For a WriteCommandError here
      • For a normal Error here

      Attachments

        Activity

          People

            benji.rewis@mongodb.com Benji Rewis (Inactive)
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: