Skip to content
Snippets Groups Projects
Commit ea22a7be authored by unknown's avatar unknown
Browse files

Merge branch 'master' of https://github.com/saggarsunil/YCSB

parents 4cfd40f2 42b39f59
No related branches found
No related tags found
No related merge requests found
......@@ -199,12 +199,9 @@ public class AsyncMongoDbClient extends DB {
try {
databaseName = uri.getDatabase();
if ((databaseName == null) || databaseName.isEmpty()) {
System.err
.println("ERROR: Invalid URL: '"
+ url
+ "'. Must provide a database name with the URI. "
+ "'mongodb://<host1>:<port1>,<host2>:<port2>/database");
System.exit(1);
// Default database is "ycsb" if database is not
// specified in URL
databaseName="ycsb";
}
mongoClient = MongoFactory.createClient(uri);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment