[SERVER-6316] collMod command should have better return reporting Created: 05/Jul/12  Updated: 11/Jul/16  Resolved: 23/Jul/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.1.2
Fix Version/s: 2.2.0-rc1

Type: Improvement Priority: Minor - P4
Reporter: Kevin Matulef Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-5046 per collection option to pad to power... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently the only parameter that the "collMod" command can parse is "usePowerOf2Sizes". If you spell "usePowerOf2Sizes" wrong, or put anything else in there, the command still returns

{ "ok" : 1}

. This is confusing. The command should have better return reporting.

There are different ways to deal with this. I'm in favor of just having the command return

{ "ok" : 0}

(with an appropriate error message) if you pass in other BSON elements it doesn't know what to do with.



 Comments   
Comment by auto [ 23/Jul/12 ]

Author:

{u'date': u'2012-07-23T08:40:38-07:00', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-6316 - check invalid names in collMod
Branch: master
https://github.com/mongodb/mongo/commit/bd766a5148717e236285799cc49e62ed7fea1d60

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