Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12967

remove createIndexes 'noChangesMade' field as its redundant

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 2.6.0-rc1
    • 2.6.0-rc0
    • Index Maintenance

    Description

      The result document for createIndexes should use 'changesMade' instead of 'noChangesMade' to avoid double negatives and to be more clear:

      db.newColl.runCommand('createIndexes', {indexes: [{key: {_id: 1}, name: 'foo'}]})
      {
      	"numIndexesBefore" : 1,
      	"note" : "all indexes already exist",
      	"noChangesMade" : true,
      	"ok" : 1
      }


      Version: 914a26f51ff7ffeb28922273925318da6a6eba71

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: