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

Nonexistent class VoteCommitImportCollection is declared a friend of UUID class

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • Internal Code
    • Replication

    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.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: