[SERVER-12967] remove createIndexes 'noChangesMade' field as its redundant Created: 28/Feb/14  Updated: 11/Jul/16  Resolved: 28/Feb/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: 2.6.0-rc0
Fix Version/s: 2.6.0-rc1

Type: Improvement Priority: Trivial - P5
Reporter: Kamran K. Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-16930 remove unnecessary fatal assertion wh... Closed
is related to SERVER-1627 add createIndexes command Closed
Participants:

 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



 Comments   
Comment by Githook User [ 28/Feb/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-12967: remove createIndexes 'noChangesMade' field as its redundant
Branch: master
https://github.com/mongodb/mongo/commit/fcc9f9533202466a1420e6eb539e9e8978d506df

Generated at Thu Feb 08 03:30:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.