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

Misspelled Mutex name in SyncClusterConnection constructor

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9.0
    • Affects Version/s: 1.8.0-rc0
    • Component/s: None
    • Labels:
      None
    • Environment:
      n/a

      I downloaded master of mongodb to get a feel of how its put together.

      I casually noticed that in syncclusterconnection.cpp there is the line:

      SyncClusterConnection::SyncClusterConnection( const list<HostAndPort> & L) : _mutex("SynClusterConnection") {

      While the other overloads have a different mutex name (SyncCluster rather than SynCluster).

      I don't know enough about the code yet to know whether this is a possible problem (ie two mutexes may exist instead of one for this class if a separate overload is used).

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            plasma Andrew Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: