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

Race Condition in FailPoint::setMode

    XMLWordPrintable

Details

    • ALL

    Description

      It is possible to have _fpInfo be greater than zero after the spinning on while (_fpInfo.load() != 0) because slowShouldFailOpenBlock does not try to grab the lock. So

      _fpInfo.store(ACTIVE_BIT);

      should be an atomic bitwise OR instead.

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: