Skip to content

Commit

Permalink
fill in missing props in riak_core_bucket_type:defaults/0
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwest committed Oct 14, 2013
1 parent 36437b6 commit 4af7e9a
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/riak_core_bucket_type.erl
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,25 @@
%% @doc The hardcoded defaults for all bucket types.
-spec defaults() -> bucket_type_props().
defaults() ->
[{n_val,3},
{allow_mult,false},
{last_write_wins,false},
{precommit, []},
{postcommit, []},
{chash_keyfun, {riak_core_util, chash_std_keyfun}}].
[{linkfun, {modfun, riak_kv_wm_link_walker, mapreduce_linkfun}},
{old_vclock, 86400},
{young_vclock, 20},
{big_vclock, 50},
{small_vclock, 50},
{pr, 0},
{r, quorum},
{w, quorum},
{pw, 0},
{dw, quorum},
{rw, quorum},
{basic_quorum, false},
{notfound_ok, true},
{n_val,3},
{allow_mult,false},
{last_write_wins,false},
{precommit, []},
{postcommit, []},
{chash_keyfun, {riak_core_util, chash_std_keyfun}}].

%% @doc Create the type. The type is not activated (available to nodes) at this time. This
%% function may be called arbitratily many times if the claimant does not change between
Expand Down

0 comments on commit 4af7e9a

Please sign in to comment.