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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v7.0, v6.3
    • Repl 2023-04-17, Repl 2023-05-01
    • 21

    Description

      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.

      Attachments

        Activity

          People

            vishnu.kaushik@mongodb.com Vishnu Kaushik
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: