Disallow createIndexes with clustered:false

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution Team 2022-04-04, Execution Team 2022-04-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Specifying 'clustered': false blocks an index from being created but returns IndexAlreadyExists

      db.runCommand({"createIndexes":"undefined","indexes":[{"key":{"somedata":1},"name":"s2","clustered":false,"unique":true}]})
      {
      	"numIndexesBefore" : 3,
      	"numIndexesAfter" : 3,
      	"note" : "all indexes already exist",
      	"ok" : 1
      }
      

            Assignee:
            Yujin Kang Park
            Reporter:
            Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: