[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: |
|
||||||||
| 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: |