Skip to content

Commit

Permalink
ability to configure default block size
Browse files Browse the repository at this point in the history
  • Loading branch information
rzezeski committed Feb 17, 2011
1 parent ed2cf75 commit a516abb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/luwak_file.erl
Expand Up @@ -37,7 +37,10 @@ create(Riak, Name, Attributes) when is_binary(Name) ->
%% checksum of the most recent write request
%% as a property of the filehandle.
create(Riak, Name, Properties, Attributes) when is_binary(Name) ->
BlockSize = proplists:get_value(block_size, Properties, ?BLOCK_DEFAULT),
DefaultBlockSize = app_helper:get_env(luwak,
default_block_size,
?BLOCK_DEFAULT),
BlockSize = proplists:get_value(block_size, Properties, DefaultBlockSize),
Order = proplists:get_value(tree_order, Properties, ?ORDER_DEFAULT),
Checksumming = proplists:get_value(checksumming, Properties, false),
if
Expand Down

0 comments on commit a516abb

Please sign in to comment.