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

Introduce HostAndPort::parse method

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.3
    • Affects Version/s: None
    • Component/s: Networking
    • None
    • Minor Change

      The HostAndPort(String) constructor parses and throws an exception on error. Sometimes, it is helpful to get back a status, instead. Implement StatusWith<HostAndPort> HostAndPort::parse(const StringData&) to provide this behavior.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: