[SERVER-18979] Duplicate uassert & fassert codes Created: 15/Jun/15  Updated: 17/Feb/16  Resolved: 19/Jun/15

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 3.0.3, 3.1.4
Fix Version/s: 3.0.5, 3.1.5

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-22698 clang-format can produce an indentati... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Platform 5 06/26/16
Participants:

 Description   

Code in Question:
src\mongo\db\commands\list_indexes.cpp:

#line 97

            uassert(
                28528,
                str::stream() << "Argument to listIndexes must be of type String, not "
                              << typeName(first.type()),
                first.type() == String);
            const NamespaceString ns(parseNs(dbname, cmdObj));
            uassert(
                28529,
                str::stream() << "Argument to listIndexes must be a collection name, "
                              << "not the empty string",
                !ns.coll().empty());

src\mongo\db\repl\replica_set_config.cpp:

#line 508

        else if (status != ErrorCodes::NoSuchKey) {
            // NoSuchKey means we have no $voter-tagged nodes in this config;
            // other errors are unexpected.
            fassert(28528, status);
        }
 
        // $stepDownCheck: one electable node plus ourselves
        pattern = _tagConfig.makePattern();
        status = _tagConfig.addTagCountConstraintToPattern(&pattern,
                                                           MemberConfig::kInternalElectableTagName,
                                                           2);
        if (status.isOK()) {
            _customWriteConcernModes[kStepDownCheckWriteConcernModeName] = pattern;
        }
        else if (status != ErrorCodes::NoSuchKey) {
            // NoSuchKey means we have no $electable-tagged nodes in this config;
            // other errors are unexpected
            fassert(28529, status);
        }



 Comments   
Comment by Githook User [ 25/Jun/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-18979: Duplicate uassert & fassert codes

(cherry picked from commit 8289f5481bff0da371d66191e40d611b12009cc5)
Branch: v3.0
https://github.com/mongodb/mongo/commit/3f1022ce0b72d7445122c71bc0541dd809b54548

Comment by Githook User [ 19/Jun/15 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-18979: Duplicate uassert & fassert codes
Branch: master
https://github.com/mongodb/mongo/commit/8289f5481bff0da371d66191e40d611b12009cc5

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