Skip to content

Commit

Permalink
Merge pull request #445 from basho/refactor/bucket_types_include
Browse files Browse the repository at this point in the history
initial add of riak_core_bucket_types.hrl
  • Loading branch information
Dave Parfitt committed Nov 5, 2013
2 parents 19aeaba + fcfae67 commit 6d53f2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions include/riak_core_bucket_type.hrl
@@ -0,0 +1,3 @@
-define(BUCKET_TYPE_PREFIX, {core, bucket_types}).
-define(DEFAULT_TYPE, <<"default">>).

4 changes: 2 additions & 2 deletions src/riak_core_bucket_type.erl
Expand Up @@ -89,6 +89,8 @@
%% by most riak_core applications and is considered acceptable (so dont do it!).
-module(riak_core_bucket_type).

-include("riak_core_bucket_type.hrl").

-export([defaults/0,
create/2,
status/1,
Expand All @@ -103,11 +105,9 @@
itr_close/1]).

-export_type([bucket_type/0]).

-type bucket_type() :: binary().
-type bucket_type_props() :: [{term(), term()}].

-define(DEFAULT_TYPE, <<"default">>).

%% @doc The hardcoded defaults for all bucket types.
-spec defaults() -> bucket_type_props().
Expand Down
3 changes: 2 additions & 1 deletion src/riak_core_claimant.erl
Expand Up @@ -21,6 +21,8 @@
-module(riak_core_claimant).
-behaviour(gen_server).

-include("riak_core_bucket_type.hrl").

%% API
-export([start_link/0]).
-export([leave_member/1,
Expand Down Expand Up @@ -76,7 +78,6 @@
-define(ROUT(S,A),ok).
%%-define(ROUT(S,A),?debugFmt(S,A)).
%%-define(ROUT(S,A),io:format(S,A)).
-define(BUCKET_TYPE_PREFIX, {core, bucket_types}).

%%%===================================================================
%%% API
Expand Down

0 comments on commit 6d53f2e

Please sign in to comment.