thomasmueller commented on code in PR #1142:
URL: https://github.com/apache/jackrabbit-oak/pull/1142#discussion_r1351793356
##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentNodeStoreBuilderBase.java:
##########
@@ -212,6 +213,15 @@ MongoStatus getMongoStatus() {
return mongoStatus;
}
+ /**
+ * Returns the MongoDB client configured in the {@link #setMongoDB(String,
String, int)} method.
+ *
+ * @return the client or null if the {@link #setMongoDB(String, String,
int)} method hasn't been called.
+ */
+ public MongoClient getMongoClient() {
+ return mongoClient;
Review Comment:
This would make the mongoClient field obsolete:
```suggestion
return mongoDBConnection.getClient();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]