basho/riak_pipe — pull request #33 by beerriot (2011-11-02 15:29:57+00:00)
Title: Use modfun tuples instead of anonymous funs (AZ561)

(rebased version of https://github.com/basho/riak_pipe/pull/32)

This is the second half of the migration to modfun tuples for chash and nval Pipe parameters. It includes the first half, which was made on the 1.0 branch for inclusion in 1.0.2. This makes the diff a little awkward, but the important commits in this PR are the last two: d538ca1 and 8cdb6fd.

The riak_pipe_fun:compat_apply/2 magic was necessary to ensure a stable rolling upgrade for Riak KV's MapReduce pipes. It should be general enough to be used by other functions, if necessary.