[SERVER-52909] Nonexistent class VoteCommitImportCollection is declared a friend of UUID class Created: 17/Nov/20 Updated: 27/Oct/23 Resolved: 08/Oct/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Trivial - P5 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | Backlog - Replication Team |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Replication
|
||||||||
| Participants: | |||||||||
| Description |
|
The UUID class's default constructor is private. Since IDL-generated classes use the default constructor, they're all manually declared friends of UUID. One of them is an imaginary friend, however: VoteCommitImportCollection does not exist. https://github.com/mongodb/mongo/blob/r4.4.1/src/mongo/util/uuid.h#L91 While we're fixing that, remove the "friend class LogicalSessionId" declaration from UUID's "private" section, since it's duplicated in the public section. Everyone knows they're friends now, UUID doesn't have to be ashamed of LogicalSessionId anymore. |
| Comments |
| Comment by Esha Maharishi (Inactive) [ 08/Oct/21 ] | ||||||||
|
Closing as Works as Designed - VoteCommitImportCollection exists in the enterprise module:
Also, |