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

--noOptionsRestore flag has no affect on mongorestore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0-rc0
    • Component/s: Tools
    • Labels:
    • Environment:
      OSX 10.7.4
    • Operating System:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: