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

Race Condition in FailPoint::setMode

    • ALL

      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.

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

              Created:
              Updated:
              Resolved: