[SERVER-76126] Do not set value of $$USER_ROLES unless it is used in query Created: 14/Apr/23  Updated: 29/Oct/23  Resolved: 20/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1

Type: Task Priority: Major - P3
Reporter: Militsa Sotirova Assignee: Militsa Sotirova
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-76041 Avoid SBE registering slots that aren... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Participants:
Linked BF Score: 120

 Description   

Note, this should be general enough to also allow for other variables to have the same behavior, as in SERVER-76041.



 Comments   
Comment by Githook User [ 01/May/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-76126 Set user roles system variable only if referenced in query
Branch: v7.0
https://github.com/mongodb/mongo/commit/f111692c34410b676cf5b352449904715e373b43

Comment by Githook User [ 20/Apr/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-76126 Set user roles system variable only if referenced in query
Branch: master
https://github.com/mongodb/mongo/commit/504791ab80450817064977dcb11c524e977ebd18

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