Fix the lifetime of ImpersonationSessionGuard in ExecCommandDatabase

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Service arch 2020-11-16
    • 48
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      After futurizing execCommandDatabase (i.e., the introduction of ExecCommandDatabase), the scope of ImpersonationSessionGuard has reduced to _initiateCommand (see here). The scope must be extended to that of the future-chain returned by ExecCommandDatabase::run() (see here), by making the scoped variable a member of ExecCommandDatabase.

              Assignee:
              Amirsaman Memaripour
              Reporter:
              Amirsaman Memaripour
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: