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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.1
    • Affects Version/s: 0.9.6, 0.9.7
    • Component/s: Tools
    • Labels:
      None
    • Environment:
      All

      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.

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

              Created:
              Updated:
              Resolved: