-
Notifications
You must be signed in to change notification settings - Fork 233
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
Add async job switches #1459
Add async job switches #1459
Conversation
…ment in the check
…ment branch! * Leaving erlang_js at a tag because it's way behind current and I don't want to investigate whether it still supports R16. Format per RIAK-2559 branch's rebar.config so the eventual merge won't hurt so much.
basho/tools.mk#13 Changing as a separate commit in case any problems arise, but it seems solid.
We should forbid the operation if *either* of these clauses return true, not just if they both do.
Egregious...
And update associated unit test to match.
true -> | ||
case check_bucket_type(Type) of | ||
{ok, GoodType} -> | ||
do_list_buckets(GoodType, T, S, Req, State); | ||
error -> | ||
{error, {format, "No bucket-type named '~s'", [Type]}, State} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small request for the future: if/when you break up long lines, could you do it in its own separate commit? It adds a little bit of friction to the review process when I have to look at the diff and mentally filter out what's an actual change vs what's just being reformatted.
Refactored to reduce code duplication and increase clarity.
We use four spaces for each indentation level elsewhere, so new code should follow that convention.
The new code has no clause to handle stream=undefined, which is what we'll get in that one backwards compatibility case.
…traction Refactored riak_kv_pb_index and riak_kv_pb_bucket (version 2) Reviewed-by: JeetKunDoug
+1 8e0233b |
Add async job switches Reviewed-by: nickelization
@borshop merge |
already merged _[posted via JIRA by Patricia Brewer]_ |
Adds switches for the following operations arriving through HTTP or protobuf interfaces:
Caveats:
map_reduce_js
, meant to control map-reduce jobs using embedded javascript, is not handled distinctly frommap_reduce
, as we have not yet identified an efficient way to determine whether or not a submitted job actually uses JS at the outer boundary where filtering is implemented.