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

etcdserver: Range with min/max mod revision #6411

Merged
merged 3 commits into from
Sep 13, 2016

Conversation

heyitsanthony
Copy link
Contributor

Partially addresses #5412. Mainly in response to #6408 since the current Mutex code has some gross hacks to work around the lack of min/max mod rev. RWMutex would need to inherit those hacks to work, so might as well update the API so it can be done cleanly.

@@ -263,6 +280,12 @@ func WithCountOnly() OpOption {
return func(op *Op) { op.countOnly = true }
}

// WithMinModRev filters out keys with modification revisions less than the given revision.
Copy link
Contributor

Choose a reason for hiding this comment

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

add a comment about this option only works for range request? users might think this would work for deleterange.

@xiang90
Copy link
Contributor

xiang90 commented Sep 13, 2016

lgtm

@xiang90
Copy link
Contributor

xiang90 commented Sep 13, 2016

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants