[JAVA-1866] the getDB() is disposed by the getDatabase, but the GridFS use DB as a parameter only Created: 19/Jun/15 Updated: 11/Sep/19 Resolved: 22/Jun/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | GridFS |
| Affects Version/s: | 3.0.2 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | smithbob | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
linux ubuntu 14.04 LTS |
||
| 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 |
| Comments |
| Comment by Jeffrey Yemin [ 19/Jun/15 ] |
|
In scope of |
| Comment by smithbob [ 19/Jun/15 ] |
|
sorry, the problem is to cast MongoDatabase to DB. |