Use db.getMongo().defaultDB instead of db.defaultDB

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0, v6.3
    • Repl 2023-04-17, Repl 2023-05-01
    • 21
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      db.defaultDB evaluates to the collection "test.defaultDB" (assuming db is the "test" DB) whereas what was intended in this line and the one above was the get whatever value "defaultDB" evaluated to.

            Assignee:
            Vishnu Kaushik
            Reporter:
            Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: