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

Fixes several mutation tracking issues with leaf nodes. #13

Merged
merged 4 commits into from
Feb 14, 2017

Conversation

slackpad
Copy link
Contributor

The mergeChild issue was the root cause of hashicorp/consul#2724.

This wasn't broken before, but the extra layer of indirection made
tracing this really difficult. Channels are already safe to use as
map keys being "reference types".
txn := r.Txn()
txn.TrackMutate(true)
txn.Delete([]byte("acb"))
switch i {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a great idea!

iradix_test.go Outdated
n := snapIter.Front()
path := snapIter.Path()
switch path {
case "", "a", "ac":
Copy link
Contributor

Choose a reason for hiding this comment

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

Explanatory comments would go a long way :)

@slackpad slackpad merged commit d0852f9 into master Feb 14, 2017
@slackpad slackpad deleted the b-leaf-fixes branch February 14, 2017 00:45
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.

2 participants