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

Shell does not support connection strings

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.8.1
    • Shell
    • None
    • Fully Compatible

    Description

      Connection string syntax is defined here:
      http://www.mongodb.org/display/DOCS/Connections

      The shell does not appear to support this syntax at all.

      Doing something like the following throws an assertion or simply crashes the shell:

      var other_server = new Mongo('mongodb://localhost:6900,localhost:6901 '); // fails
      var other_server = new Mongo('mongodb://localhost:6900 '); // also fails
      var other_server = connect('mongodb://localhost:6900 '); // fails

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            gatesvp Gaetan Voyer-Perrault
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: