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

Collection.FindOne option MaxTime not working

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.3
    • Affects Version/s: 1.4.0
    • Component/s: Command & Dispatch
    • None

      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`

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

              Created:
              Updated:
              Resolved: