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

Simplify way of checking isEnabledAndIgnoreFCVUnsafe

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The current way to check if a feature flag is enabled regardless of FCV is:

      if (featureFlag.isEnabled(
        [](auto& fcvGatedFlag) { return fcvGatedFlag.isEnabledAndIgnoreFCVUnsafe(); })) 

      That can be more complex than necessary. 

      We can change it to something like: 

      if (featureFlag.isEnabled(kIgnoringFCV)) 
      

      to make it easy to read. 

      We should also change the linter to lint for `kIgnoringFCV` instead of the "(Ignore FCV check)" comment 

            Assignee:
            Unassigned Unassigned
            Reporter:
            evelyn.wu@mongodb.com Evelyn Wu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: