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

remove createIndexes 'noChangesMade' field as its redundant

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.6.0-rc1
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Index Maintenance

      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

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

              Created:
              Updated:
              Resolved: