[SERVER-79786] unnamed namespace in command.h Created: 07/Aug/23  Updated: 29/Oct/23  Resolved: 09/Aug/23

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

Type: Bug Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by SERVER-52542 Specify input/output to dropIndexes c... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2023-08-21
Participants:

 Description   

Anonymous namespaces are forbidden in headers, as they cause violations of the one-definition rule.

One was added to command.h (SERVER-52542) a while back.
https://mongodbcr.appspot.com/737630008/patch/762060001/754440009

We should take that out and/or replace it with something like a command_details namespace.

I can roll this into other work on the Command.h header for the "shard+router" project.



 Comments   
Comment by Githook User [ 09/Aug/23 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-79786 improve command alias detection
Branch: master
https://github.com/mongodb/mongo/commit/371e685d734ccfd55f5f8672d5a1f002cdef05fe

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