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

Handle Bulk.Run() result being nil #37

Merged
merged 1 commit into from Jun 13, 2017

Conversation

mjs
Copy link

@mjs mjs commented Jun 13, 2017

If err is ErrNotFound then result will be nil, triggering a panic.

Fixes https://bugs.launchpad.net/juju/+bug/1697795

If err is ErrNotFound then result will be nil, triggering a panic.

Fixes https://bugs.launchpad.net/juju/+bug/1697795
Copy link

@babbageclunk babbageclunk left a comment

Choose a reason for hiding this comment

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

Yay!

@babbageclunk
Copy link

babbageclunk commented Jun 13, 2017

This seems like a bug in mgo though - Bulk.Run should return the accumulated result even when there's an error. (I think.)

@mjs
Copy link
Author

mjs commented Jun 13, 2017

I agree, but in the mean time we need to do this

@mjs
Copy link
Author

mjs commented Jun 13, 2017

$$merge$$

@jujubot
Copy link
Contributor

jujubot commented Jun 13, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju-txn

@jujubot jujubot merged commit dbb63c6 into juju:master Jun 13, 2017
@mjs mjs deleted the 1697795-pruner-nil-handling branch June 13, 2017 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants