Skip to content

Commit

Permalink
using session.Copy instead of session.Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuadros committed Oct 13, 2015
1 parent 5bbe26a commit 804344d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (s *Store) RawDelete(query Query, multi bool) error {
}

func (s *Store) getSessionAndCollection() (*mgo.Session, *mgo.Collection) {
sess := s.db.Session.Clone()
sess := s.db.Session.Copy()

return sess, sess.DB(s.db.Name).C(s.collection)
}

0 comments on commit 804344d

Please sign in to comment.