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

Implement put and update for EtcdDtabStore #357

Closed
wants to merge 2 commits into from

Conversation

olix0r
Copy link
Member

@olix0r olix0r commented Apr 30, 2016

No description provided.

val buf = Buf.Utf8(dtab.show)
val key = root.key(Path.Utf8(ns))
key.compareAndSwap(buf, prevIndex = Some(index)).unit.rescue {
case ApiError(ApiError.TestFailed, _, _, _) =>
Copy link
Member

Choose a reason for hiding this comment

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

What if the key does not exist? We should return a DtabNamespaceDoesNotExistException in that case, I think.

@olix0r olix0r closed this May 3, 2016
@olix0r olix0r removed the reviewable label May 3, 2016
@olix0r olix0r deleted the ver/update branch May 3, 2016 17:00
Tim-Brooks pushed a commit to Tim-Brooks/linkerd that referenced this pull request Dec 20, 2018
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