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

MongoInterfaceShardServer must check result of getDatabase

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

      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

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

              Created:
              Updated:
              Resolved: