Change readpref.Primary() return constant

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Given that the value returned by `readpref.Primary()` is always the same, we should create a constant for it and have that returned rather than doing a new allocation for each call.

            Assignee:
            Samuel Rossi (Inactive)
            Reporter:
            Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: