Commits

Anonymous committed 7c50f2b

Fixing bogosity in JSON map/reduce parser

Comments (0)

Files changed (1)

apps/riak/src/riak_mapred_json.erl

         true ->
             error
     end;
-parse_query([{struct, Type, {struct, StepDef}}|T], Accum) when Type =:= <<"map">>;
+parse_query([{struct, [{Type, {struct, StepDef}}]}|T], Accum) when Type =:= <<"map">>;
                                                                Type =:= <<"reduce">> ->
     StepType = case Type of
                    <<"map">> -> map;