Hi,
i have the following concern :
we had an application that used java driver 2.1 with the following code :
BasicDBObject object = (BasicDBObject) localDB.getCollection("system.namespaces").findOne(new BasicDBObject("name", "
local.oplog.rs"));
LogFileSizeMB = ((BasicDBObject) object.get("options")).getDouble("size") / (1024 * 1024);
now after we moved to java driver 3.2 :
MongoCollection<org.bson.Document> collection = localDB.getCollection("
oplog.rs");
MongoCursor<Document> cursor = collection.find().iterator();
the cursor always returning empty and we get the object as NULL.
can u please advise how can we change the implementation to get real data for setting OpLogInfo (log file size) ?
Regards,
Majeed Said