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

--noOptionsRestore flag has no affect on mongorestore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.1.2
    • 2.2.0-rc0
    • Tools
    • OSX 10.7.4
    • OS X

    Description

      mongo qa108
      > db.dropDatabase()
      > db.createCollection('capped',

      { capped: true, size: 1000, autoIndexId: true }

      );
      exit;
      mongodump -d qa108 -c capped -o qa108
      mongorestore -d qa108 --drop --noOptionsRestore ./qa108/qa108
      mongo qa108
      > assert(true !== db.capped.stats().capped) // fail

      // examine db.capped.exists().options to see how all options were recreated

      Attachments

        Issue Links

          Activity

            People

              eliot Eliot Horowitz (Inactive)
              aheckmann Aaron Heckmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: