Create RAII helper to acquire Operation FCV for OperationContext

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.3.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2025-10-27, CAR Team 2025-11-10, CAR Team 2025-11-24
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      Add a RAII helper FixedOperationFCVRegion that acquires an snapshot of the Global Server FCV, and sets it as the VersionContext decoration over the caller's OperationContext.
      The decoration is unset when it is destructed.

      While the object is in scope, the caller's OperationContext gets a stable view of feature flags, lifting the restrictions explained in SERVER-91221.
      The VersionContext is also replicated in the oplog, so the stability extends to the application of any op that is emitted while the object is in scope.

            Assignee:
            Pierlauro Sciarelli
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: