Commits

Anonymous committed 16a8dfb

fixed reduce_plist_sum - non-member case of dict:update should have been value of prop, not zero

Comments (0)

Files changed (1)

src/riak_mapreduce.erl

     dict:to_list(
       lists:foldl(
         fun({K,V},Dict) ->
-                dict:update(K, fun(DV) -> V+DV end, 0, Dict)
+                dict:update(K, fun(DV) -> V+DV end, V, Dict)
         end,
         dict:new(),
         if is_tuple(hd(PList)) -> PList;