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

Introduce HostAndPort::parse method

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.3
    • Component/s: Networking
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            schwerin Andy Schwerin
            Reporter:
            schwerin Andy Schwerin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: