[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: |
|
||||||||||||
| 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. |