[SERVER-22969] Remove connectionURLTheSame from the global scope Created: 04/Mar/16  Updated: 16/Mar/16  Resolved: 07/Mar/16

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 3.3.3

Type: Bug Priority: Minor - P4
Reporter: Kamran K. Assignee: Kamran K.
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: TIG 11 (03/11/16)
Participants:
Linked BF Score: 0

 Description   

We should remove connectionURLTheSame from the global scope because it's only used by ShardingTest and because it's not robust to invalid parameters.


Original description:

connectionURLTheSame is a shell-only function that will recurse too much on invalid parameters:

connectionURLTheSame(db.test, {});

We can add type checking to prevent this behavior, which sometimes results in test failures when fuzzing.



 Comments   
Comment by Githook User [ 07/Mar/16 ]

Author:

{u'username': u'kkmongo', u'name': u'Kamran Khan', u'email': u'kamran.khan@mongodb.com'}

Message: SERVER-22969 Remove connectionURLTheSame from the global scope

connectionURLTheSame has been moved to ShardingTest's scope because it's
only used from ShardingTest code.
Branch: master
https://github.com/mongodb/mongo/commit/63d332ff3c37b738ea7cc7fe0b203f3cece875a0

Generated at Thu Feb 08 04:01:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.