[SERVER-14901] 'dropDup' typo in IndexCatalog::_fixIndexSpec Created: 14/Aug/14  Updated: 08/Sep/14  Resolved: 20/Aug/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 2.7.6

Type: Bug Priority: Major - P3
Reporter: Kamran K. Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-14710 Remove dropDups support from index bu... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

var t = db.dropdups;
t.drop();
 
t.ensureIndex({a: 1}, {dropDups: true});
t.getIndexSpecs().forEach(function(spec) {
    assert.eq(false, spec.hasOwnProperty('dropDups'), tojson(spec));
});

Participants:

 Description   

IndexCatalog::_fixIndexSpec has this code:

1119    else if ( s == "dropDup" ) {
1120        // dropDups is silently ignored and removed from the spec as of SERVER-14710.
1121    }

I believe "dropDup" should be "dropDups".


Version: 10827279fbc6380d4d7774837022b65b3204a988



 Comments   
Comment by Githook User [ 20/Aug/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-14710 finish removal of dropDups

fixes the SERVER-14901 typo
Branch: master
https://github.com/mongodb/mongo/commit/4f379f1c6689481b74d3672effdc7cd81a5f5d9a

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