[SERVER-52714] Fix the lifetime of ImpersonationSessionGuard in ExecCommandDatabase Created: 09/Nov/20  Updated: 29/Oct/23  Resolved: 09/Nov/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-49107 Add async command API Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service arch 2020-11-16
Participants:
Linked BF Score: 48

 Description   

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.


Generated at Thu Feb 08 05:28:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.