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

Fix special handling of $admin filenames

    XMLWordPrintable

Details

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

    Description

      When --db and --dumpDbUsersAndRoles are both specified, mongodump will dump out special files for the users and roles of a single db. These files are prefixed with $ so they aren't mistaken for actual collections. We need to change the special handling in mongorestore to specifically check for three filenames so that they don't get confused for the long collection name filenames that also include %24 ($):

      $admin.system.users
      $admin.system.roles
      $admin.system.version

      Attachments

        Activity

          People

            evgeni.dobranov@mongodb.com Evgeni Dobranov
            tim.fogarty@mongodb.com Tim Fogarty
            Tim Fogarty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: