Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1361

DropDatabaseAsync doesn't drop database

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker - P1 Blocker - P1
    • None
    • 2.0.1
    • None
    • None

    Description

      This command:

      client.DropDatabaseAsync(dbName).Wait()
      

      Doesn't drop the database. I can drop it from the shell just fine.

      The following works just fine:

      var command = new BsonDocument
      {
          {"dropDatabase", 1},
      };
      db.RunCommandAsync<BsonDocument>(command).Wait();
      

      This leads me to believe there's problem with the DropDatabaseAsync method.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            oliverj Oliver Janik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: