[SERVER-16112] Error out when flags options is specified for non-mmapv1 Created: 12/Nov/14  Updated: 22/May/15  Resolved: 22/May/15

Status: Closed
Project: Core Server
Component/s: Storage, Usability
Affects Version/s: 2.7.8
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Randolph Tan Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

flags is currently used for power of 2 allocation and is probably not applicable to the other storage engines. The server should error out to warn the user instead of silently ignoring it.

Sample shell session connected to a mongod running on wiredtiger engine:

> db.runCommand({ create: 'usd', flags: 0 })
{ "ok" : 1 }
> db.runCommand({ listCollections: 1 })
{
	"collections" : [
		{
			"name" : "usd",
			"options" : {
				"flags" : 0
			}
		}
	],
	"ok" : 1
}



 Comments   
Comment by Geert Bosch [ 22/May/15 ]

We explicitly allow setting options for storage engines other than the current one in order to properly support mixed-engine clusters.

Generated at Thu Feb 08 03:40:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.