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

Fix order of dependent variable assignments in currentop_shell.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • 28

      Test has two variable definitions which are interdependent and in the wrong order:

              const chunksInfo =
                  coll.getDB().getSiblingDB("config").chunks.find({uuid: collInfo.uuid}).toArray();
              const collInfo =
                  coll.getDB().getSiblingDB("config").collections.findOne({_id: coll.getFullName()});
      

      The first one depends on collInfo which is not defined yet. The order of the two stmts needs to be swapped.

            Assignee:
            adi.zaimi@mongodb.com Adi Zaimi
            Reporter:
            adi.zaimi@mongodb.com Adi Zaimi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: