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

Collection.FindOne option MaxTime not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.3
    • Component/s: Command & Dispatch
    • Security Level: Public
    • Labels:
      None

      Description

      I tried to set a time limit for each mongo operation.
      I create a option instance using function `options.FindOne().SetMaxTime()` and pass it to Collection.FindOne(). Somehow, it doesn't seem to work.
      So I dig deeper into source code and found out that in `collection.go`
      `opt.MaxTime` is not assigned to `findOpt`

        Attachments

          Activity

            People

            Assignee:
            isabella.siu Isabella Siu
            Reporter:
            sourfeethsu@gmail.com 煜廷 許
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: