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

Fix the lifetime of ImpersonationSessionGuard in ExecCommandDatabase

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

      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@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: