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

Remove connectionURLTheSame from the global scope

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.3
    • Affects Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Minor Change
    • ALL
    • TIG 11 (03/11/16)
    • 0

      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.

            Assignee:
            kamran.khan Kamran K.
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: