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

MongoInterfaceShardServer must check result of getDatabase

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Query 2019-12-16
    • 20

    Description

      The functions dropCollection and createIndexes call getValue() on the result of getDatabase() without checking for errors. Like the other similar functions (createCollection, getIndexSpecs, and renameIfOptionsAndIndexesHaveNotChanged), they should wrap the getDatabase() calls with uassertStatusOK().

      cc ted.tuckman

      Attachments

        Activity

          People

            ted.tuckman@mongodb.com Ted Tuckman
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: