Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1866

the getDB() is disposed by the getDatabase, but the GridFS use DB as a parameter only

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: GridFS
    • Labels:
      None
    • Environment:
      linux ubuntu 14.04 LTS
      mongoDB
      netbeans 8.02
      java drivers

      Description

      i just found that the using MongoClient to replace Mongo, so use client.getDatabase() to replace mongo.getDB(), but why the GridFS only receive the DB params as the only type , i just can case MongoDatabase to DB, but the getDB is disposed from the mongoClient

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: