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

Restoring single BSON file should use db set in URI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongorestore
    • Labels:
      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

            Assignee:
            Unassigned
            Reporter:
            tim.fogarty Tim Fogarty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: