[SERVER-53458] Restrict $operationMetrics stage to the admin database Created: 18/Dec/20  Updated: 29/Oct/23  Resolved: 05/Jan/21

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

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-01-11
Participants:

 Description   

By convention, cluster-wide aggregation pipeline stages are restricted to the admin database. The $operationMetrics stage may run on any database, but that does not change the output. We should restrict its usage to be consistent with other stages.



 Comments   
Comment by Githook User [ 05/Jan/21 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-53458 Only support $operationMetrics on the admin database and in the 'collectionless' form
Branch: master
https://github.com/mongodb/mongo/commit/03233b883126e4c11647e42807a408f9cafa12ea

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