Commits

Bryan Fink  committed 4a81193

convert [Bucket, Key] or [Bucket, Key, Data] to {{Bucket, Key}, Data} so JS map/reduce phases can return keys for chained map functions

  • Participants
  • Parent commits 0d13959

Comments (0)

Files changed (1)

File apps/riak/src/riak_map_phase_fsm.erl

 convert_input(I={{_B,_K},_D})
   when is_binary(_B) andalso (is_list(_K) orelse is_binary(_K)) -> I;
 convert_input(I={_B,_K})
-  when is_binary(_B) andalso (is_list(_K) orelse is_binary(_K)) -> {I,undefined}.
+  when is_binary(_B) andalso (is_list(_K) orelse is_binary(_K)) -> {I,undefined};
+convert_input([B,K]) when is_binary(B), is_binary(K) -> {{B,K},undefined};
+convert_input([B,K,D]) when is_binary(B), is_binary(K) -> {{B,K},D}.