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

Fix AtomicPut panic if previous KVPair is not nil and key not exists in boltdb #62

Merged
merged 1 commit into from
Sep 22, 2015

Conversation

chenchun
Copy link
Contributor

Signed-off-by: Chun Chen ramichen@tencent.com

Found this bug during running unit tests of libnetwork.

@mavenugo
Copy link
Contributor

thanks @chenchun

ping @sanimej

@sanimej
Copy link
Contributor

sanimej commented Sep 22, 2015

Thanks @chenchun

Can you please change the error to ErrKeyNotFound which is more appropriate in this case ?

…in boltdb

Signed-off-by: Chun Chen <ramichen@tencent.com>
@chenchun
Copy link
Contributor Author

@sanimej updated.

@sanimej
Copy link
Contributor

sanimej commented Sep 22, 2015

LGTM

sanimej pushed a commit that referenced this pull request Sep 22, 2015
Fix AtomicPut panic if previous KVPair is not nil and key not exists in boltdb
@sanimej sanimej merged commit ea7ff6a into docker:master Sep 22, 2015
@chenchun chenchun deleted the fix branch September 22, 2015 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants