Skip to content

Commit

Permalink
Assume no props if no props passed (#1781)
Browse files Browse the repository at this point in the history
The parsing of command lines doesn't pass the emtpy string in now as the second parameter when creating bucket types - so this is done explicitly now.

Also uplift to leveled to fix perf issue.
  • Loading branch information
martinsumner authored Jan 13, 2021
1 parent 3c144e5 commit 8afabc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
{riak_dt, {git, "git://github.com/basho/riak_dt.git", {tag, "riak_kv-3.0.0"}}},
{riak_api, {git, "git://github.com/basho/riak_api.git", {tag, "riak_kv-3.0.2"}}},
{hyper, {git, "git://github.com/basho/hyper", {tag, "1.1.0"}}},
{leveled, {git, "https://github.com/martinsumner/leveled.git", {tag, "1.0.2"}}},
{leveled, {git, "https://github.com/martinsumner/leveled.git", {branch, "develop-3.0"}}},
{kv_index_tictactree, {git, "https://github.com/martinsumner/kv_index_tictactree.git", {tag, "0.9.18"}}},
{riakhttpc, {git, "git://github.com/basho/riak-erlang-http-client", {tag, "riak_kv-3.0.2"}}}
]}.
2 changes: 2 additions & 0 deletions src/riak_kv_console.erl
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ bucket_type_print_activate_result(Type, {error, undefined}, _IsFirst) ->
bucket_type_print_activate_result(Type, {error, not_ready}, _IsFirst) ->
bucket_type_print_status(Type, created).

bucket_type_create([TypeStr]) ->
bucket_type_create([TypeStr, ""]);
bucket_type_create([TypeStr, ""]) ->
Type = unicode:characters_to_binary(TypeStr, utf8, utf8),
EmptyProps = {struct, [{<<"props">>, {struct, []}}]},
Expand Down

0 comments on commit 8afabc3

Please sign in to comment.