Make getTransitionFCVFromAndTo return const reference

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Security 2022-11-28
    • 66
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-65809 introduced the `transitionFCVFromAndTo` map to associate the various upgrade/downgrade FCV constants with the expected start and finish FCV version constants. `getTransitionFCVFromandTo` uses the map to retrieve the expected start and finish FCV versions given an upgrade/downgrade FCV constant. The method currently returns the FCV versions by value but const-qualifies them, which is causing clang-tidy to fail.

      The function should return a const ref to the map entry instead.

            Assignee:
            Varun Ravichandran
            Reporter:
            Varun Ravichandran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: