-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
155
This can be reproduced by running:
db.runCommand(
{ create: 'view', viewOn: 'coll' });
db.runCommand({
create: 'view',
viewOn: 'coll',
collation:
});
The first command attempts to create a view, but it fails with the error code OptionNotSupportedOnView. The second command should fail with the same error code, but instead segfaults inside checkCollectionOptions while attempting to raise this uassert.
Collation is deliberately represented as a nullptr when there have been no special collation options set.
This can be fixed by checking for a nullptr before raising the uassert.
- is caused by
-
SERVER-60064 Make create command idempotent on mongod
- Closed