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

lock: add etcdv3 semaphore implementation #5

Merged
merged 3 commits into from
Apr 29, 2019

Conversation

lucab
Copy link
Contributor

@lucab lucab commented Apr 24, 2019

This ports semaphore logic from locksmith, moving to etcdv3 transactions and cleaning up unused bits.

@lucab
Copy link
Contributor Author

lucab commented Apr 24, 2019

This is currently based on #4, so it needs that one to land first.

internal/lock/lock.go Show resolved Hide resolved
internal/lock/lock.go Show resolved Hide resolved
internal/lock/lock.go Outdated Show resolved Hide resolved
@lucab lucab force-pushed the ups/etcd3-semaphore branch from 3dc3d99 to b30c17b Compare April 25, 2019 07:37
@lucab
Copy link
Contributor Author

lucab commented Apr 25, 2019

@arithx thanks for reviewing, I hope the client-config part is a bit more clear now. I actually have one more doubt on key-prefix configuration where I'd like your input.

internal/lock/lock.go Outdated Show resolved Hide resolved
@lucab lucab force-pushed the ups/etcd3-semaphore branch from b30c17b to 829c7c1 Compare April 25, 2019 16:50
@lucab
Copy link
Contributor Author

lucab commented Apr 25, 2019

Rebased on latest master, got rid of the previously embedded #4.

@lucab
Copy link
Contributor Author

lucab commented Apr 29, 2019

@arithx mind another pass on this?

Copy link

@arithx arithx left a comment

Choose a reason for hiding this comment

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

Overall LGTM, left a question

internal/lock/lock.go Show resolved Hide resolved
@lucab lucab merged commit ca7648f into coreos:master Apr 29, 2019
@lucab lucab deleted the ups/etcd3-semaphore branch April 29, 2019 16:13
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