Skip to content

Commit 443fe17

Browse files
author
Ahmad Shah
committed
add clarifying comment
1 parent 10f4894 commit 443fe17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ycsb-mongodb/mongodb/src/main/java/com/yahoo/ycsb/db/MongoDbClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ public void init() {
532532
db = new MongoDatabase[server.length];
533533

534534
for (int i=0; i<server.length; i++) {
535+
// If the URI does not contain credentials, but they are provided in the properties, append them to the URI
535536
String url= server[i].contains("@")
536537
? server[i]
537538
: userPassword.equals("") ? server[i] : server[i].replace("://","://"+userPassword);

0 commit comments

Comments
 (0)