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

Move WireSpec Parameters out of code into defaults

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: