Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy mongo session #2

Merged
merged 2 commits into from Jul 21, 2014
Merged

Copy mongo session #2

merged 2 commits into from Jul 21, 2014

Conversation

wallyworld
Copy link
Member

Each time the txn runner is used, copy the underlying db session to ensure a fresh connection is used.

"labix.org/v2/mgo/txn"
)

var logger = loggo.GetLogger("juju.txn")

const (
//nrRetries is the number of time a transaction will be retried
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace

@axw
Copy link
Contributor

axw commented Jul 21, 2014

LGTM with user-facing comments describing defaults.

wallyworld added a commit that referenced this pull request Jul 21, 2014
Copy mongo session each time a db operation is performed.
@wallyworld wallyworld merged commit 47eba20 into juju:master Jul 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants