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

--noOptionsRestore flag has no affect on mongorestore

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.2.0-rc0
    • 2.1.2
    • 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

        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: