summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_key_validate.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-26724 createIndexes command should reject invalid options for _id indexTess Avitabile2016-10-271-11/+3
|
* SERVER-26514 Create command should take idIndex optionTess Avitabile2016-10-241-29/+154
|
* SERVER-26659 only use stricter key pattern validation for v:2 or new index ↵David Storch2016-10-201-12/+41
| | | | | | | | | builds This now follows the same rules which we will use in 3.4 for rejecting unknown top-level options in the index spec. These rules ensure a smooth upgrade, even in the presence of bad index metadata produced on an older server version.
* SERVER-26468 Create internalValidateFeaturesAsMaster startup parameterTess Avitabile2016-10-181-3/+4
|
* SERVER-24032 Replicated createIndexes should error on unrecognized fieldsJames Wahlin2016-09-291-2/+20
|
* SERVER-769 Validate createIndexes field namesJames Wahlin2016-09-231-1/+50
|
* SERVER-25969 make slaves and secondaries always use BSON 1.1 validationDavid Storch2016-09-201-1/+1
| | | | | This allows secondaries and slaves to sync NumberDecimal even while in featureCompatibilityVersion:"3.2" mode.
* SERVER-24033 Write full index spec in oplog entry for index creation.Max Hirschhorn2016-09-141-22/+18
| | | | | | | | | | | | | | | This ensures that the index version (aka the "v" field) is always present in the oplog entry when creating indexes on a 3.4 primary. We can therefore assume that if the "v" field isn't present in the corresponding oplog entry, then a v=1 index should be built. Changes MultiBlockIndex::init() to return the index specifications that were actually created. The "repairDatabase", "compact", "copydb", and "cloneCollection" commands no longer automatically upgrade the index version to the current default version. Instead, the only command that does so is the "reIndex" command.
* SERVER-25156 Add support for building v=2 indexes.Max Hirschhorn2016-09-071-15/+69
| | | | | | | | We use index version v=2 as the default index version when the featureCompatibilityVersion is 3.4, and we use index version v=1 as the default index version when the featureCompatibilityVersion is 3.2. The "collation" index option can only be used with v=2 indexes.
* SERVER-25156 Define a validateIndexSpec() helper function.Max Hirschhorn2016-09-011-0/+104
| | | | | Consolidates and moves some of the option parsing in the "createIndexes" command to its own library so that it can be unit tested.
* SERVER-11064 Stricter validation of index key patterns.Max Hirschhorn2016-01-271-2/+14
| | | | | | | | | | | | | | | Each value in the index key pattern must be one of the following: - a number > 0 (ascending) - a number < 0 (descending) - a string (special index type) Since the key pattern is validated on startup for all existing indexes, mongod will fail to start up if an index not meeting the above criteria exists. Additionally, if an index with an invalid key pattern is replicated from an older version, then newer versions of mongod running in a mixed-version replica set will fassert().
* SERVER-19519 Disallow creating an index with key '_fts'Charlie Swanson2015-11-111-0/+4
|
* SERVER-21251 consistently use BSONElement::number() >= 0 to distinguish ↵David Storch2015-11-031-9/+0
| | | | ascending/descending in key pattern
* SERVER-21166 better error messageDavid Storch2015-10-301-3/+1
|
* SERVER-21166 validate that index key pattern values are representable as ↵David Storch2015-10-291-0/+15
| | | | 32-bit signed numbers
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-57/+55
|
* SERVER-13256 Add usings and qualifications for names from namespace stdAndrew Morrow2015-01-151-0/+3
|
* Revert "SERVER-13383 validateKeyPattern allow only numeric/string key types"Dan Pasette2014-04-021-3/+2
| | | | This reverts commit be9cd7b940531fe8a46e669155c81ca14e5189b0.
* SERVER-13383 validateKeyPattern reject patterns w/ multiple pluginsJason Rassi2014-03-271-12/+17
|
* SERVER-13383 validateKeyPattern allow only numeric/string key typesJason Rassi2014-03-271-2/+3
|
* SERVER-8391 made a library for validateIndexKey()matt dannenberg2014-02-191-0/+106