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

"create" command should intrepret same user flags as "collMod" command

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.1.2
    • Component/s: MMAPv1, Storage
    • None
    • Storage Execution

      Right now there are a couple ways to set the "usePowerOf2" user flag on a collection.

      1) Create the collection. Then later call

      db.runCommand( { "collMod" : coll ,  "usePowerOf2Sizes" : true } );
      

      2) At creation time, run

      db.runCommand( {"create" : coll,  "flags" : 1 } );
      

      The latter is not very intuitive, since it relies on the user knowing how to interpret the "flags" bitmask.

      We should allow a syntax like this:

      db.runCommand( {"create" : coll,  "usePowerOf2Sizes" : true  } );
      

      and more generally, any option you can pass to "collMod" should also be something you can pass to "create".

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            matulef Kevin Matulef
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: