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

Don't truncate topic data unless fully replicated #2522

Merged
merged 1 commit into from
May 8, 2015

Conversation

otoolep
Copy link
Contributor

@otoolep otoolep commented May 8, 2015

Fix issue #2521

}
} else {
// No nodes are replicating this topic, so it's not replicated at all.
replicatedIndex = 0
}
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need to set it since it defaults to 0 on declaration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha ha. Of course. D'oh. :-)

@benbjohnson
Copy link
Contributor

I'd say remove the else block mentioned and then 🚢

@otoolep otoolep force-pushed the wait_for_full_replication branch from 610873c to b038afa Compare May 8, 2015 19:42
@otoolep
Copy link
Contributor Author

otoolep commented May 8, 2015

I had some sort of brain freeze and reverted to C programming. Code changed as per @benbjohnson.

Merging on green.

otoolep added a commit that referenced this pull request May 8, 2015
Don't truncate topic data unless fully replicated
@otoolep otoolep merged commit 2e943eb into master May 8, 2015
@otoolep otoolep deleted the wait_for_full_replication branch May 8, 2015 19:48
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