SERVER-3176: autoIndexId not honored in mongo shell's createCollection command
This commit is contained in:
@@ -1831,7 +1831,10 @@ const StringData _jscode_raw_db =
|
||||
"*/\n"
|
||||
"DB.prototype.createCollection = function(name, opt) {\n"
|
||||
"var options = opt || {};\n"
|
||||
"var cmd = { create: name, capped: options.capped, size: options.size, max: options.max };\n"
|
||||
"var autoIndexId = true;\n"
|
||||
"if (options.autoIndexId != undefined)\n"
|
||||
"autoIndexId = options.autoIndexId;\n"
|
||||
"var cmd = { create: name, capped: options.capped, size: options.size, max: options.max, autoIndexId: autoIndexId };\n"
|
||||
"var res = this._dbCommand(cmd);\n"
|
||||
"return res;\n"
|
||||
"}\n"
|
||||
|
||||
Reference in New Issue
Block a user