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

Make comment on ReplicaSetMonitor::get match how the function works

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
    • Fully Compatible
    • Server Serverless 2021-10-25

      The function comment discusses behavior based on a parameter 'createFromSeed' that no longer exists.

          /**
           * gets a cached Monitor per name. If the monitor is not found and createFromSeed is false,
           * it will return none. If createFromSeed is true, it will try to look up the last known
           * servers list for this set and will create a new monitor using that as the seed list.
           */
          static std::shared_ptr<ReplicaSetMonitor> get(const std::string& name);
      

            Assignee:
            sophia.tan@mongodb.com Sophia Tan
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: