Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-89075

Converge on a single way for obtaining the current client

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability

      Looking at the code, there are 4 different ways one can obtain the client associated with the current thread:

      This looks a bit excessive and confusing and we should probably have one unified way for obtaining the client of the current thread. I have slight preference that we converge on Client::currentClient() as the only way to access the current client.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: