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

--noOptionsRestore flag has no affect on mongorestore

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0-rc0
    • Affects Version/s: 2.1.2
    • Component/s: Tools
    • Labels:
    • Environment:
      OSX 10.7.4
    • OS X

      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

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

              Created:
              Updated:
              Resolved: