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

Move WireSpec Parameters out of code into defaults

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch

    Description

      In each main mongo executable (mongo, mongos, mongod, mongoq, etc.) there is a function that initializes the WireSpec parameters:

      https://github.com/10gen/mongo/blob/6a836ac18b9530f4a5e0f87a048497eb0686a77d/src/mongo/s/mongos_main.cpp#L742-L751

      https://github.com/10gen/mongo/blob/cf78d87ee503ecb877d261c9138d786b0b3b399f/src/mongo/db/mongod_main.cpp#L1393

      https://github.com/10gen/mongo/blob/cf78d87ee503ecb877d261c9138d786b0b3b399f/src/mongo/embedded/embedded.cpp#L127

      https://github.com/10gen/mongo/blob/cf78d87ee503ecb877d261c9138d786b0b3b399f/src/mongo/shell/mongo_main.cpp#L167

      (enterprise links in comments)

      We should move these default parameters out of the middle of the setup code and into defaults somewhere, where they are more easily discoverable.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: