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

DistLockManager deferred unlock stores StringData objects which may point to invalid memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.12
    • Fix Version/s: 3.3.14
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2016-10-10
    • Linked BF Score:
      0

      Description

      The dist lock manager's deferred unlock feature stores StringData objects, which is incorrect, because they do not own their memory.

      Instead these should be std::string.

        Attachments

          Activity

            People

            Assignee:
            kaloian.manassiev Kaloian Manassiev
            Reporter:
            kaloian.manassiev Kaloian Manassiev
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: