Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

upgraded driver to 2.4

  • Loading branch information...
commit 77a1beb05f2f8be48a902a48215f05b43466399c 1 parent 11c12e3
Mark Priatel authored
View
2  grails-app/conf/BuildConfig.groovy
@@ -17,7 +17,7 @@ grails.project.dependency.resolution = {
}
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
- runtime 'org.mongodb:mongo-java-driver:2.1'
+ runtime 'org.mongodb:mongo-java-driver:2.4'
}
}
View
2  src/groovy/com/iolog/mongodbtools/MongoDbWrapper.groovy
@@ -214,7 +214,7 @@ public class MongoDbWrapper implements InitializingBean
throw new IllegalArgumentException("No MongoDB config found in grailsApplicaiton.config.mongo.databases.${name}")
}
- def port = dbConfig.port ? dbConfig.port : 27017
+ def port = dbConfig.port as int ? dbConfig.port as int: 27017
Mongo mongo = new Mongo(dbConfig.host, port)
mongos.put(name, mongo)
return mongo
Please sign in to comment.
Something went wrong with that request. Please try again.