Skip to content

Commit

Permalink
Merge pull request #766 from basho/bugfix/2i-aae-tree-build
Browse files Browse the repository at this point in the history
Fix error when hashing index data in tree builds
  • Loading branch information
jaredmorrow committed Dec 18, 2013
2 parents 954cecb + ac68f33 commit 4cddc9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/riak_kv_index_hashtree.erl
Expand Up @@ -441,8 +441,8 @@ object_fold_fun(Tree) ->
index_fold_fun(Tree) ->
fun(RObj, BinBKey) ->
IndexData = riak_object:index_data(RObj),
[insert([{?INDEX_2I_N, BinBKey, hash_index_data(IndexDatum)}],
[if_missing], Tree) || IndexDatum <- IndexData]
insert([{?INDEX_2I_N, BinBKey, hash_index_data(IndexData)}],
[if_missing], Tree)
end.

%% @Doc the 2i index hashtree as a Magic index_n of {0, 0}
Expand Down

0 comments on commit 4cddc9f

Please sign in to comment.