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

Remove/replace write lock in replAuthenticate()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0.6, 2.1.2
    • Component/s: Security
    • Environment:
      All

      In repl.cpp (L1056 in r2.0.2; L1069 in master), we take a write lock before calling findOne() or getSingleton(). There doesn't seem to be a reason for taking a write lock here; replacing with a read lock seems to make sense.

            Assignee:
            Unassigned Unassigned
            Reporter:
            benjamin.becker Ben Becker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: