[SERVER-81912] Unify the implementation for cluster CRUD commands on mongod and mongos Created: 05/Oct/23  Updated: 29/Jan/24

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

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-81968 Make mongod dispatch commands through... Closed
Assigned Teams:
Service Arch
Participants:

 Description   

PM-2210 and PM-1452 linked cluster insert, update, delete, find, aggregate, getMore and bulkWrite commands into mongod. However, to differentiate between the corresponding mongod commands, the cluster commands currently are registered with the "cluster" prefix and exist under cluster_*_d.cpp. The difference between the commands in cluster_*_d.cpp and cluster_*_s.cpp is that the former require the internal privilege since prior to 8.0 they are only meant to be run in internal transactions. As part of introducing multiple command registries in PM-635, we should combine cluster_*_d.cpp and cluster_*_s.cpp and make sure that cluster commands on mongod require the same privileges as on mongos.


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