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

XMLWordPrintableJSON

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

      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:
              Michael Dirolf (Inactive)
              Reporter:
              Travis Petticrew
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: