The following createIndex is incorrect:
db.collection.createIndex( { "SysTS": 1 }, { expireAfterSeconds: 47335428 }, {background: true} );
Instead of receiving an error, it gets executed in the foreground.
Tested in 3.6 and 4.0.
- duplicates
-
SERVER-26726 Check number of arguments for createIndex() and throw error if more than two arguments
- Closed