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

localThresholdMS does not default to 15 ms

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0
    • Affects Version/s: 1.0.4
    • Component/s: CRUD
    • None
    • Minor Change

      There's a defaultLocalThreshold constant defined (to 15 ms) but it's completely unreferenced. It seems like the intention was to make Client.localThreshold default to defaultLocalThreshold, possibly in newClient.

      Confusingly, there is one usage of description.LatencySelector(15 * time.Millisecond), in Operation.selectServer, but my read of that code is that it would almost never come into play, since a selector will almost always be specified. Either way, it seems like that should use defaultLocalThreshold, rather than hardcoding 15 * time.Millisecond.

      I suspect all of this means that localThresholdMS ends up defaulting to 0 ms.

            Assignee:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Reporter:
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: