Changes: 1) Warn on startup if using old minor version and invalid indexes exist. 2) Treat unknown index plugins created under pre-2.4 as ascending 3) When creating first index using new plugins: a) if there are invalid indexes error out b) if not pump the pdfile minor version 4) ScanAndOrder no longer supports index plugins (it never should have) Note: All text and 2dsphere indexes created prior to this commit will need to be rebuilt.
Keep track of the shard key value (random number) for each saved document and report it when a document can't be found so we can see what shard it should be on and when it has been migrated. When mongos can't find a document, look for it directly on both shards and report where it was found or if it was not found. Add header comments describing these features.
… and use missingField() to properly identify missing fields in CheckShardingIndex::run().
Do not change the 'db' variable in indexOtherNamespace.js. When run as part of sharding_passthrough.js, this breaks downstream tests (rename.js was one).
Test assumes that counters are not being changed by other threads during run.
…ion names ending in ".system.indexes"
…he connection pools anytime sharding is initialized