[SERVER-79385] Return const ref PrivilegeVectors more frequently Created: 26/Jul/23 Updated: 10/Aug/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | William Qian | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Optimization
|
| Participants: |
| Description |
|
There are a few cases like src/mongo/db/pipeline/document_source_query_stats.h:requiredPrivileges that return a copy of the PrivilegeVector instead of something more efficient. We should have these return const refs where possible, to avoid copies as much as possible. |