Permalink
Browse files

upgraded driver to 2.4

  • Loading branch information...
1 parent 11c12e3 commit 77a1beb05f2f8be48a902a48215f05b43466399c @gluiojoj gluiojoj committed Feb 22, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 grails-app/conf/BuildConfig.groovy
  2. +1 −1 src/groovy/com/iolog/mongodbtools/MongoDbWrapper.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'
}
}
@@ -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

0 comments on commit 77a1beb

Please sign in to comment.