Fix order of dependent variable assignments in currentop_shell.js

XMLWordPrintableJSON

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

      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
            Reporter:
            Adi Zaimi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: