[SERVER-11576] objcheck=false in INI-style config has no effect on server Created: 05/Nov/13  Updated: 10/Dec/14  Resolved: 08/Nov/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Phillip Quiza Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

With config file /tmp/mongod-tests/data/db/ini-objcheck.ini containing

objcheck=false

objcheck does not appear in result of `getCmdLineOpts`

{u'ok': 1.0, u'parsed': {u'smallfiles': True, u'config': u'/tmp/mongod-tests/data/db/ini-objcheck.ini', u'dbpath': u'/tmp/mongod-tests/data/db/ini-objcheck', u'port': 30001}, u'argv': [u'mongo/mongod', u'--config', u'/tmp/mongod-tests/data/db/ini-objcheck.ini', u'--dbpath', u'/tmp/mongod-tests/data/db/ini-objcheck', u'--port', u'30001', u'--smallfiles']}



 Comments   
Comment by Scott Hernandez (Inactive) [ 05/Nov/13 ]

This is by design. Flags (like objcheck) are always true so settings a flag to false means it is not set, hence doesn't appear in the list. For the false cases we have created no<Flag> options (like noObjcheck) which can be set (true).

Is the fact that every line in the ini file doesn't show up in getCmdLineOpts what you consider a bug here?

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