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

Misspelled Mutex name in SyncClusterConnection constructor

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.9.0
    • 1.8.0-rc0
    • None
    • None
    • n/a

    Description

      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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: