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

Adds datatypes support. #28

Merged
merged 5 commits into from
Nov 25, 2013
Merged

Adds datatypes support. #28

merged 5 commits into from
Nov 25, 2013

Conversation

seancribbs
Copy link

See also basho/riak_kv#732. The API functions are equivalent to the ones provided by the PB client, but return values for errors will obviously be slightly different.

{ok, "204", _H, _B} ->
%% not creation, no returnbody
ok;
{ok, "200", _H, Body} ->
Copy link
Member

Choose a reason for hiding this comment

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

No case clause match for return_body updates, assuming it is the reuse of the Body here (as it is already bound above as the JSON to be posted at line 683.) Same below for the 201 case.

I pushed the fix.

@russelldb
Copy link
Member

Looks good to me. Pushed a minor fix. Tested by hand in some trivial cases. A riak_test that exercises this client would be great, and helpful for riak_kv#732 too. 👍

@seancribbs
Copy link
Author

Good catch, Russell, thanks!

seancribbs pushed a commit that referenced this pull request Nov 25, 2013
@seancribbs seancribbs merged commit c81b78e into master Nov 25, 2013
@seancribbs seancribbs deleted the feature/sdc/crdt-http-api branch November 25, 2013 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants