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

2.0 #217

Closed
wants to merge 30 commits into from
Closed

2.0 #217

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
20b2c3e
Add 2i pagination sort option
engelsanchez Oct 30, 2013
dff422d
Add term regex option to 2i queries
engelsanchez Oct 9, 2013
01cdc12
Fix unhandled case of empty cs buckets response
engelsanchez Dec 12, 2013
46c3747
Change riak_pb dep to 1.4.4.0
jaredmorrow Dec 13, 2013
8d33c02
Merge pull request #144 from basho/bugfix/empty-cs-buckets-error
engelsanchez Dec 18, 2013
39b8048
Never use infinity request timeouts
reiddraper Feb 15, 2014
786f460
Merge pull request #160 from basho/feature/remove-infinity-timeouts
reiddraper Feb 19, 2014
74373ef
added vsn.mk
seanmcevoy Jul 28, 2014
961ecc2
fixed build versions
seanmcevoy Jul 28, 2014
4ee4898
modified app.src
seanmcevoy Aug 6, 2014
acbb325
added queue_len function
seanmcevoy Aug 12, 2014
e2004ab
added queue functions and test
seanmcevoy Sep 12, 2014
0b5a9c7
added type-check function, cleaned up SASL log entries
seanmcevoy Oct 30, 2014
607a12e
re-worked the timeout mechanism on the riak client
seanmcevoy Jan 6, 2015
b02635a
changed set_max_queue_len from call to cast
seanmcevoy Jan 29, 2015
d71d50c
added new timeout mechanism
seanmcevoy Apr 1, 2015
1779f90
minor cleanup
seanmcevoy Apr 8, 2015
6855732
Added stats & tests
seanmcevoy Apr 10, 2015
a276153
Tidy-up
seanmcevoy Apr 10, 2015
a19f0b1
resolved merge conflicts
seanmcevoy Apr 13, 2015
b03f8e4
test updates
seanmcevoy Apr 14, 2015
7a0c121
Resolved merge conflicts
seanmcevoy Apr 14, 2015
7f5763b
Fixed version
seanmcevoy Apr 14, 2015
f98ef0b
test tweaks
seanmcevoy Jun 18, 2015
6331b59
stored stats per bucket
seanmcevoy Jun 24, 2015
dc812ab
added stats demo
seanmcevoy Jun 28, 2015
51a8dc6
Enable compilation on OTP 18
amiramix Sep 25, 2015
73fb633
Merge pull request #1 from yoonka/2.0
seanmcevoy Oct 13, 2015
6dc0dcc
Restore for now because it breaks on R15 and 16
amiramix Oct 14, 2015
4f2859e
Merge pull request #2 from yoonka/2.0
seanmcevoy Oct 14, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/riakc.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
-define(PROTO_MAJOR, 1).
-define(PROTO_MINOR, 0).
-define(DEFAULT_PB_TIMEOUT, 60000).
-define(FIRST_RECONNECT_INTERVAL, 100).
-define(FIRST_RECONNECT_INTERVAL, 10).
-define(MAX_RECONNECT_INTERVAL, 30000).

-type client_option() :: queue_if_disconnected |
Expand All @@ -33,7 +33,8 @@
auto_reconnect |
{auto_reconnect, boolean()} |
keepalive |
{keepalive, boolean()}.
{keepalive, boolean()} |
{stats, non_neg_integer()}.
%% Options for starting or modifying the connection:
%% `queue_if_disconnected' when present or true will cause requests to
%% be queued while the connection is down. `auto_reconnect' when
Expand Down
10 changes: 9 additions & 1 deletion src/riakc.app.src
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
%% -*- erlang -*-
{application, riakc,
[{description, "Riak Client"},
{vsn, git},
{vsn, "2.0"},
{applications, [
kernel,
stdlib,
riak_pb
]},
{registered, []},
{modules, [riakc_counter,
riakc_datatype,
riakc_flag,
riakc_map,
riakc_obj,
riakc_pb_socket,
riakc_register,
riakc_set]},
{env, [
%% Set default timeout for operations.
%% Individual operation timeouts can be supplied,
Expand Down
6 changes: 5 additions & 1 deletion src/riakc_obj.erl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
clear_links/1,
delete_links/2,
set_link/2,
add_link/2
add_link/2,
is_riakc_obj/1
]).
%% Internal library use only
-export([new_obj/4,index_id_to_bin/1]).
Expand Down Expand Up @@ -575,6 +576,9 @@ add_link(MD, [{T, IdList} | Rest]) ->
add_link(MD2, Rest)
end.

is_riakc_obj(#riakc_obj{}) -> true;
is_riakc_obj(_) -> false.

%% @doc INTERNAL USE ONLY. Set the contents of riakc_obj to the
%% {Metadata, Value} pairs in MVs. Normal clients should use the
%% set_update_[value|metadata]() + apply_updates() method for changing
Expand Down
Loading