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

Teach riak_core Bucket Types #357

Merged
merged 2 commits into from
Sep 7, 2013
Merged

Teach riak_core Bucket Types #357

merged 2 commits into from
Sep 7, 2013

Conversation

jrwest
Copy link
Contributor

@jrwest jrwest commented Aug 15, 2013

Like buckets, we must teach core this because a few subsystems use them. Bucket Types provide a method for grouping buckets logically (see basho/riak#362).

This PR requires Cluster Metadata which can be found on https://github.com/basho/riak_core/tree/corekv-unstable and https://github.com/basho/riak_core/tree/jrw-cluster-meta. This PR should not be merged until Cluster Metadata has the +1 and is merged as well.

jrwest and others added 2 commits August 14, 2013 09:34
Like buckets, we must teach core this because a few subsystems
use them. Bucket Types provide a method for grouping buckets
logically (see basho/riak#362).
… reset

Non-default bucket-types are unaffected by changes to app.config and
bucket types can have their properties reset to the hardcoded defaults.
@ghost ghost assigned engelsanchez Sep 3, 2013
resolve({notfound_ok, NF1}, {notfound_ok, NF2}) ->
NF1 orelse NF2;
resolve({old_vclock, Old1}, {old_vclock, Old2}) ->
case Old1 > Old2 of
Copy link
Contributor

Choose a reason for hiding this comment

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

This and all the other resolution cases would be more readable long term if we used good ol' max() instead IMO

@engelsanchez engelsanchez merged commit 81024be into develop Sep 7, 2013
@seancribbs seancribbs deleted the bos-bucket-type branch April 1, 2015 23:02
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