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


Generated at Thu Feb 08 06:40:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.