Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2584

Restoring single BSON file should use db set in URI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 100.3.1
    • mongorestore
    • None

    Description

      NSOptions in mongorestore have -d and -c options that are mirrored by the namespace options in mtc ToolOptions. Although the namespace options are normalized with the URI, the NSOptions are not. This leads to mongorestore not correctly detecting when a database has been set on the URI. We should refactor mongorestore to use the namespace options for database/collection instead of the NSOptions.

      Attachments

        Activity

          People

            varsha.subrahmanyam@mongodb.com Varsha Subrahmanyam (Inactive)
            tim.fogarty@mongodb.com Tim Fogarty
            Tim Fogarty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: