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

etcd: remove mutex side keys from results in List #38

Merged
merged 2 commits into from
Oct 16, 2017
Merged

Conversation

abronan
Copy link
Owner

@abronan abronan commented Oct 13, 2017

Carry and completes #31


This PR aligns the results returned by List by filtering *_lock keys from the results.

Additionally, we test for this case for both etcd v2 and etcd v3 and we change the lock suffix to be ___lock instead of _lock to avoid collision with similar key names following the pattern of using a simple underscore (might brake backward compatibility of List results for client the using master version of libkv).

@nmengin PTAL :)

@abronan abronan force-pushed the filter_lock_key branch 3 times, most recently from d3bc7b8 to 8355a31 Compare October 16, 2017 01:49
This PR completes the work done on aligning the
results returned by `List` by filtering `*_lock`
keys from the results.

Additionally, we test for this case for both etcd
v2 and etcd v3 and we change the lock suffix to be
`___lock` instead of `_lock` to avoid collision with
similar key names following the pattern of using a
simple underscore (might brake backward compatibility
of `List` results for client the using master version
of libkv).

Signed-off-by: Alexandre Beslic <abeslic@abronan.com>
Copy link

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

LGTM 😉 👍

@abronan abronan merged commit 5e4bb28 into master Oct 16, 2017
@abronan abronan deleted the filter_lock_key branch October 16, 2017 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants