-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 1.0.0
-
Component/s: None
-
None
CreateIndexes currently specifies the namespace as an "ns" field in the index specification document for createIndexes commands. While that was required for legacy index creation (i.e. system.indexes insertions) it has never been applicable to the createIndexes command. The server does not appear to apply strict validation and raise errors for unsupported index options; however, we'd do well to fix this in case a future version starts doing so.
This code was introduced prior to 1.0 in 4de66e3 and was preserved when porting Collection methods to operation classes in 5b7bb9a.
I discovered this while working on the unified test runner (PHPLIB-493), since it is more strict about matching command documents.
- is related to
-
PHPLIB-493 Unified test format implementation
- Closed