[SERVER-16995] Validate options for createIndexes command Created: 22/Jan/15 Updated: 22/Jan/15 Resolved: 22/Jan/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Ramon Fernandez Marina | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
Consider the command to build a background index:
A typo in the options like the one above will trigger a foreground index build, with may have a very negative impact on production environments. It would be nice if we could validate options to the ensureIndex() command, and fail with an error message if invalid options are provided. |