| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This allows secondaries and slaves to sync NumberDecimal even while
in featureCompatibilityVersion:"3.2" mode.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Consolidates and moves some of the option parsing in the "createIndexes"
command to its own library so that it can be unit tested.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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().
|
| |
|
|
|
|
| |
ascending/descending in key pattern
|
| |
|
|
|
|
| |
32-bit signed numbers
|
| |
|
| |
|
|
|
|
| |
This reverts commit be9cd7b940531fe8a46e669155c81ca14e5189b0.
|
| |
|
| |
|
|
|