Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-52909

Nonexistent class VoteCommitImportCollection is declared a friend of UUID class

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Replication
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: