What is the correct way to access the OperationContext in the commit method of a RecoveryUnit::Change implementation?

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Execution Team 2022-09-19, Execution Team 2022-10-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The opCtx we were under when the handler was created is not valid during commit. What is the prescribed way to access the current opCtx? The approach we are currently using is to retrieve the opCtx from the current client:

      auto opCtx = cc().getOperationContext();

       

       

            Assignee:
            Henrik Edin
            Reporter:
            Alexander Taskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: