Skip to content

Commit

Permalink
Merge pull request #61 from alphagov/read_from_primary
Browse files Browse the repository at this point in the history
Always read from the mongo primary.
  • Loading branch information
bradwright committed Nov 8, 2013
2 parents b78cace + 1199760 commit f95ff88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (rt *Router) ReloadRoutes() {
panic(fmt.Sprintln("mgo:", err))
}
defer sess.Close()
sess.SetMode(mgo.Monotonic, true)
sess.SetMode(mgo.Strong, true)

db := sess.DB(rt.mongoDbName)

Expand Down

0 comments on commit f95ff88

Please sign in to comment.