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

mongorestore does not honor -d (--db) flags

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.1.1
    • 0.9.6, 0.9.7
    • Tools
    • None
    • All

    Description

      mongorestore --help shows that the -d and --db option should set the "database to use."

      In tools/Tool.cpp this parameter maps to the instance variable _db and this variable is not referenced in tools/restore.cpp. After further digging I see that the target database used is always that of the dumped database and the d(-db) option is always ignored for this task.

      Attachments

        Activity

          People

            mike Michael Dirolf
            bobotheshortm Travis Petticrew
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: