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

Counter: expose the previous and changed values. #397

Merged
merged 1 commit into from
May 31, 2017
Merged

Counter: expose the previous and changed values. #397

merged 1 commit into from
May 31, 2017

Conversation

neuroid
Copy link
Contributor

@neuroid neuroid commented Jun 10, 2016

This commit extends the Counter API with the pre_value and
post_value attributes. These attributes are set when a counter
is changed. Previously, if the counter was modified concurrently,
it was not possible to access the exact value to which the counter
was set after a successful increment or decrement.

This commit extends the `Counter` API with the `pre_value` and
`post_value` attributes. These attributes are set when a counter
is changed. Previously, if the counter was modified concurrently,
it was not possible to access the exact value to which the counter
was set after a successful increment or decrement.
@neuroid
Copy link
Contributor Author

neuroid commented Jun 10, 2016

This is inspired by the API provided by http://curator.apache.org/curator-recipes/distributed-atomic-long.html

@neuroid
Copy link
Contributor Author

neuroid commented Jun 13, 2016

Ping @hannosch

@hannosch
Copy link
Contributor

@neuroid sorry, I'm not actively contributing to kazoo anymore.

@bbangert bbangert merged commit c2db1e9 into python-zk:master May 31, 2017
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.

3 participants