diff options
author | Benety Goh <benety@mongodb.com> | 2014-10-16 16:52:41 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-10-16 20:55:01 -0400 |
commit | 69600d691341bfd2fbf58e15d8727fbc2fd1ccf1 (patch) | |
tree | ea9aaa53df79f8537e51be4e6b35873e5f44f1b9 /src | |
parent | 22f8b6259602a76f8d22cba8b1098f9e3c90a36f (diff) | |
download | mongo-69600d691341bfd2fbf58e15d8727fbc2fd1ccf1.tar.gz |
SERVER-13635 fixed createCollection shell helper to understand storageEngine option
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/shell/db.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index 3deb6b4a4bf..82cc4c325b6 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -86,6 +86,20 @@ DB.prototype._adminCommand = DB.prototype.adminCommand; // alias old name </li> <li> max: maximum number of objects if capped (optional).</li> <li> usePowerOf2Sizes: if true, set usePowerOf2Sizes allocation for the collection.</li> + <li> + storageEngine: BSON document containing storage engine specific options. Format: + { + storageEngine: { + storageEngine1: { + ... + }, + storageEngine2: { + ... + }, + ... + } + } + </li> </ul> <p>Example:</p> @@ -108,6 +122,8 @@ DB.prototype.createCollection = function(name, opt) { cmd.size = options.size; if (options.usePowerOf2Sizes != undefined) cmd.flags = options.usePowerOf2Sizes ? 1 : 0; + if (options.storageEngine != undefined) + cmd.storageEngine = options.storageEngine; var res = this._dbCommand(cmd); return res; } |