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

DatabaseHolder mutex issues

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      isLoaded() and get() require a read lock only, but they call operator[] on _paths, which is a write operation. Since c++ maps are not thread-safe, this could cause memory corruption. The read-only members of DatabaseHolder should be made const functions if they can truly be implemented as read-only. (This would make accessing _paths.operator[] a compile error.)

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: